mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 10:46:11 +00:00
Attempt at supporting Isengard Beta 2
This commit is contained in:
parent
cce246e106
commit
91b9d3167d
1 changed files with 21 additions and 10 deletions
|
@ -62,15 +62,26 @@ 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")
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue