mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +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
|
||||
|
||||
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")
|
||||
|
||||
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue