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
def getKodiVideoDBPath():
if xbmc.getInfoLabel("System.BuildVersion").startswith("13"):
#gotham
kodibuild = xbmc.getInfoLabel("System.BuildVersion")
if kodibuild.startswith("13"):
# Gotham
dbVersion = "78"
if xbmc.getInfoLabel("System.BuildVersion").startswith("15"):
#isengard
dbVersion = "92"
else:
#helix
elif kodibuild.startswith("14"):
# Helix
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")
return dbPath
@ -79,8 +90,8 @@ def getKodiVideoDBPath():
def getKodiMusicDBPath():
if xbmc.getInfoLabel("System.BuildVersion").startswith("13"):
#gotham
dbVersion = "48"
if xbmc.getInfoLabel("System.BuildVersion").startswith("15"):
dbVersion = "46"
elif xbmc.getInfoLabel("System.BuildVersion").startswith("15"):
#isengard
dbVersion = "52"
else: