Ticket #12950: fixes29.patch

File fixes29.patch, 2.3 KB (added by ijc@…, 8 years ago)

patch for fixes/29 d35436d9405eb31e9e2aeef3c2fad20c6e613da6

  • mythtv/bindings/python/MythTV/methodheap.py

    From 64d48f943507a8b74310aa7bdf560149d225a923 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 ):  
    12311231                                    fields=('genre_id',)))
    12321232
    12331233        if key in ('name','track','disc_number','rating',
    1234                         'format','sample_rate','bitrate'):
     1234                        'format','sample_rate','bitrate', 'hostname'):
    12351235            return ('music_songs.%s=%%s' % key, value, 0)
    12361236        if key == 'artist':
    12371237            return ('music_artists.artist_name=%s', value, 1)
  • mythtv/bindings/python/MythTV/static.py

    diff --git a/mythtv/bindings/python/MythTV/static.py b/mythtv/bindings/python/MythTV/static.py
    index 6d82b8ef87..e68e8b04ec 100644
    a b Contains any static and global variables for MythTV Python Bindings  
    77OWN_VERSION = (0,28,-1,0)
    88SCHEMA_VERSION = 1348
    99NVSCHEMA_VERSION = 1007
    10 MUSICSCHEMA_VERSION = 1018
     10MUSICSCHEMA_VERSION = 1024
    1111PROTO_VERSION = '91'
    1212PROTO_TOKEN = 'BuzzOff'
    1313BACKEND_SEP = '[]:[]'