From e02cf5550314bf6b6eefede9783eacc06e99ecd1 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 29 Jan 2017 14:10:20 +0100 Subject: [PATCH] Fix Errors when trying to open databases --- resources/lib/variables.py | 42 +++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/resources/lib/variables.py b/resources/lib/variables.py index 7904fb20..47cd4a9e 100644 --- a/resources/lib/variables.py +++ b/resources/lib/variables.py @@ -56,37 +56,37 @@ else: # Database paths _DB_VIDEO_VERSION = { - "13": 78, # Gotham - "14": 90, # Helix - "15": 93, # Isengard - "16": 99, # Jarvis - "17": 107, # Krypton - "18": 107 # Leia + 13: 78, # Gotham + 14: 90, # Helix + 15: 93, # Isengard + 16: 99, # Jarvis + 17: 107, # Krypton + 18: 107 # Leia } DB_VIDEO_PATH = tryDecode(xbmc.translatePath( - "special://database/MyVideos%s.db" % _DB_VIDEO_VERSION.get(KODIVERSION))) + "special://database/MyVideos%s.db" % _DB_VIDEO_VERSION[KODIVERSION])) _DB_MUSIC_VERSION = { - "13": 46, # Gotham - "14": 48, # Helix - "15": 52, # Isengard - "16": 56, # Jarvis - "17": 60, # Krypton - "18": 60 # Leia + 13: 46, # Gotham + 14: 48, # Helix + 15: 52, # Isengard + 16: 56, # Jarvis + 17: 60, # Krypton + 18: 60 # Leia } DB_MUSIC_PATH = tryDecode(xbmc.translatePath( - "special://database/MyMusic%s.db" % _DB_MUSIC_VERSION.get(KODIVERSION))) + "special://database/MyMusic%s.db" % _DB_MUSIC_VERSION[KODIVERSION])) _DB_TEXTURE_VERSION = { - "13": 13, # Gotham - "14": 13, # Helix - "15": 13, # Isengard - "16": 13, # Jarvis - "17": 13, # Krypton - "18": 13 # Leia + 13: 13, # Gotham + 14: 13, # Helix + 15: 13, # Isengard + 16: 13, # Jarvis + 17: 13, # Krypton + 18: 13 # Leia } DB_TEXTURE_PATH = tryDecode(xbmc.translatePath( - "special://database/Textures%s.db" % _DB_TEXTURE_VERSION.get(KODIVERSION))) + "special://database/Textures%s.db" % _DB_TEXTURE_VERSION[KODIVERSION])) DB_PLEX_PATH = tryDecode(xbmc.translatePath("special://database/plex.db"))