From f7cc261ac8217d1f184f115ee749f074d57ea487 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, 29, 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 871605565c..cebacbf80d 100644
a
|
b
|
class MythMusic( MusicSchema, DBCache ): |
1231 | 1231 | fields=('genre_id',))) |
1232 | 1232 | |
1233 | 1233 | if key in ('name','track','disc_number','rating', |
1234 | | 'format','sample_rate','bitrate'): |
| 1234 | 'format','sample_rate','bitrate', 'hostname'): |
1235 | 1235 | return ('music_songs.%s=%%s' % key, value, 0) |
1236 | 1236 | if key == 'artist': |
1237 | 1237 | 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 7ecd402299..e2f7868cf3 100644
a
|
b
|
Contains any static and global variables for MythTV Python Bindings |
7 | 7 | OWN_VERSION = (0,28,-1,0) |
8 | 8 | SCHEMA_VERSION = 1346 |
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 = '[]:[]' |