From 11f57b847737aa942f57de110cb125ebff500aa7 Mon Sep 17 00:00:00 2001
From: Ian Campbell <ijc@hellion.org.uk>
Date: Sat, 3 Dec 2016 12:26:25 +0000
Subject: [PATCH] python: Bump MythMusic schema from 1018 to 1024
Looking at mythplugins/mythmusic/mythmusic/dbcheck.cpp across fixes/*:
0.28, master 1024
0.26, 0.27 1020
0.25 1019
0.22, 0.23, 0.24 1017
0.21 1013
While the Python bindings have said 1018 since 0.25, updated from 1017 in
695511514a67.
Looking at dbcheck.cpp the updates are:
1018->1019:
- updates to music_albumart, not covered by bindings.
1019->1020:
- recreates music_radios, not covered by bindings.
1020->1021:
- adds music_songs.hostname, trivial update to MythMusic.searchMusic()
binding.
1021->1022:
- adds music_albumart.hostname, not covered by bindings.
1022->1023:
- adds indexes to music_albumart and music_albums.
1023->1024:
- big changes to music_radios and addition of music_streams, neither are
covered by the bindings.
---
mythtv/bindings/python/MythTV/methodheap.py | 2 +-
mythtv/bindings/python/MythTV/static.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mythtv/bindings/python/MythTV/methodheap.py b/mythtv/bindings/python/MythTV/methodheap.py
index f68903a4e8..cbbc861509 100644
a
|
b
|
class MythMusic( MusicSchema, DBCache ): |
1235 | 1235 | fields=('genre_id',))) |
1236 | 1236 | |
1237 | 1237 | if key in ('name','track','disc_number','rating', |
1238 | | 'format','sample_rate','bitrate'): |
| 1238 | 'format','sample_rate','bitrate', 'hostname'): |
1239 | 1239 | return ('music_songs.%s=%%s' % key, value, 0) |
1240 | 1240 | if key == 'artist': |
1241 | 1241 | return ('music_artists.artist_name=%s', value, 1) |
diff --git a/mythtv/bindings/python/MythTV/static.py b/mythtv/bindings/python/MythTV/static.py
index 2acd1c74df..f7152f9aa5 100644
a
|
b
|
Contains any static and global variables for MythTV Python Bindings |
7 | 7 | OWN_VERSION = (30,0,-1,0) |
8 | 8 | SCHEMA_VERSION = 1348 |
9 | 9 | NVSCHEMA_VERSION = 1007 |
10 | | MUSICSCHEMA_VERSION = 1018 |
| 10 | MUSICSCHEMA_VERSION = 1024 |
11 | 11 | PROTO_VERSION = '91' |
12 | 12 | PROTO_TOKEN = 'BuzzOff' |
13 | 13 | BACKEND_SEP = '[]:[]' |