From b07d82080672aa78e2162397aa88dcf3d5a325a8 Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Sat, 10 Jun 2017 16:10:17 +0200 Subject: [PATCH] basic support for Kodi Leia --- resources/lib/database.py | 6 ++++-- resources/lib/views.py | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/resources/lib/database.py b/resources/lib/database.py index c7d1097a..b833b313 100644 --- a/resources/lib/database.py +++ b/resources/lib/database.py @@ -29,7 +29,8 @@ def video_database(): '14': 90, # Helix '15': 93, # Isengard '16': 99, # Jarvis - '17': 107 # Krypton + '17': 107,# Krypton + '18': 108 # Leia } return xbmc.translatePath("special://database/MyVideos%s.db" % db_version.get(KODI, "")).decode('utf-8') @@ -41,7 +42,8 @@ def music_database(): '14': 48, # Helix '15': 52, # Isengard '16': 56, # Jarvis - '17': 60 # Krypton + '17': 60, # Krypton + '18': 65 # Leia } return xbmc.translatePath("special://database/MyMusic%s.db" % db_version.get(KODI, "")).decode('utf-8') diff --git a/resources/lib/views.py b/resources/lib/views.py index 7ca441dd..f807eb69 100644 --- a/resources/lib/views.py +++ b/resources/lib/views.py @@ -194,8 +194,8 @@ class Views(object): def get_tag(self, tag): # This will create and return the tag_id - if KODI in (15, 16, 17): - # Kodi Isengard, Jarvis, Krypton + if KODI > 14: + # Kodi Isengard and up query = ' '.join(( "SELECT tag_id", @@ -244,8 +244,8 @@ class Views(object): log.debug("Updating: %s with %s for %s: %s", tag, new_tag, media_type, kodi_id) - if KODI in (15, 16, 17): - # Kodi Isengard, Jarvis, Krypton + if KODI > 14: + # Kodi Isengard and up try: query = ' '.join((