basic support for Kodi Leia

This commit is contained in:
marcelveldt 2017-06-10 16:10:17 +02:00
parent 4ed87e877c
commit b07d820806
2 changed files with 8 additions and 6 deletions

View file

@ -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')

View file

@ -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((