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/mythtv/bindings/python/MythTV/methodheap.py
+++ b/mythtv/bindings/python/MythTV/methodheap.py
@@ -1235,7 +1235,7 @@ class MythMusic( MusicSchema, DBCache ):
                                     fields=('genre_id',)))
 
         if key in ('name','track','disc_number','rating',
-                        'format','sample_rate','bitrate'):
+                        'format','sample_rate','bitrate', 'hostname'):
             return ('music_songs.%s=%%s' % key, value, 0)
         if key == 'artist':
             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/mythtv/bindings/python/MythTV/static.py
+++ b/mythtv/bindings/python/MythTV/static.py
@@ -7,7 +7,7 @@ Contains any static and global variables for MythTV Python Bindings
 OWN_VERSION = (30,0,-1,0)
 SCHEMA_VERSION = 1348
 NVSCHEMA_VERSION = 1007
-MUSICSCHEMA_VERSION = 1018
+MUSICSCHEMA_VERSION = 1024
 PROTO_VERSION = '91'
 PROTO_TOKEN = 'BuzzOff'
 BACKEND_SEP = '[]:[]'
-- 
2.14.1

