Ticket #12950: 0001-python-Bump-MythMusic-schema-from-1018-to-1024.patch

File 0001-python-Bump-MythMusic-schema-from-1018-to-1024.patch, 2.3 KB (added by ijc@…, 7 years ago)

2017-09-24 Rebased onto master @ 01a3b5f11b0064c3af2bceda1cf55fa0add5072a

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

    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 ): 
    12351235                                    fields=('genre_id',)))
    12361236
    12371237        if key in ('name','track','disc_number','rating',
    1238                         'format','sample_rate','bitrate'):
     1238                        'format','sample_rate','bitrate', 'hostname'):
    12391239            return ('music_songs.%s=%%s' % key, value, 0)
    12401240        if key == 'artist':
    12411241            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 2acd1c74df..f7152f9aa5 100644
    a b Contains any static and global variables for MythTV Python Bindings 
    77OWN_VERSION = (30,0,-1,0)
    88SCHEMA_VERSION = 1348
    99NVSCHEMA_VERSION = 1007
    10 MUSICSCHEMA_VERSION = 1018
     10MUSICSCHEMA_VERSION = 1024
    1111PROTO_VERSION = '91'
    1212PROTO_TOKEN = 'BuzzOff'
    1313BACKEND_SEP = '[]:[]'