Attempt at supporting Isengard Beta 2

This commit is contained in:
angelblue05 2015-06-15 19:41:40 -05:00
parent cce246e106
commit 91b9d3167d

View file

@ -62,16 +62,27 @@ def KodiSQL(type="video"):
return connection return connection
def getKodiVideoDBPath(): def getKodiVideoDBPath():
if xbmc.getInfoLabel("System.BuildVersion").startswith("13"):
#gotham kodibuild = xbmc.getInfoLabel("System.BuildVersion")
if kodibuild.startswith("13"):
# Gotham
dbVersion = "78" dbVersion = "78"
if xbmc.getInfoLabel("System.BuildVersion").startswith("15"): elif kodibuild.startswith("14"):
#isengard # Helix
dbVersion = "92"
else:
#helix
dbVersion = "90" dbVersion = "90"
elif kodibuild.startswith("15"):
# Isengard
if "BETA1" in kodibuild:
# Beta 1
dbVersion = "92"
elif "BETA2" in kodibuild:
# Beta 2
dbVersion = "93"
else:
# Not a compatible build
xbmc.log("This Kodi version is incompatible. Current version: %s" % kodibuild)
dbPath = xbmc.translatePath("special://profile/Database/MyVideos" + dbVersion + ".db") dbPath = xbmc.translatePath("special://profile/Database/MyVideos" + dbVersion + ".db")
return dbPath return dbPath
@ -79,8 +90,8 @@ def getKodiVideoDBPath():
def getKodiMusicDBPath(): def getKodiMusicDBPath():
if xbmc.getInfoLabel("System.BuildVersion").startswith("13"): if xbmc.getInfoLabel("System.BuildVersion").startswith("13"):
#gotham #gotham
dbVersion = "48" dbVersion = "46"
if xbmc.getInfoLabel("System.BuildVersion").startswith("15"): elif xbmc.getInfoLabel("System.BuildVersion").startswith("15"):
#isengard #isengard
dbVersion = "52" dbVersion = "52"
else: else: