mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
few small changes for utils
This commit is contained in:
parent
e2e847db29
commit
a69918f13f
1 changed files with 14 additions and 17 deletions
|
@ -84,10 +84,10 @@ def checkKodiSources():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def KodiSQL():
|
def KodiSQL():
|
||||||
if xbmc.getinfolabel("System.BuildVersion").startswith("13"):
|
if xbmc.getInfoLabel("System.BuildVersion").startswith("13"):
|
||||||
#gotham
|
#gotham
|
||||||
dbVersion = "78"
|
dbVersion = "78"
|
||||||
if xbmc.getinfolabel("System.BuildVersion").startswith("15"):
|
if xbmc.getInfoLabel("System.BuildVersion").startswith("15"):
|
||||||
#isengard
|
#isengard
|
||||||
dbVersion = "91"
|
dbVersion = "91"
|
||||||
else:
|
else:
|
||||||
|
@ -142,7 +142,6 @@ def addKodiSource(name, path, type):
|
||||||
|
|
||||||
|
|
||||||
error = False
|
error = False
|
||||||
if xbmcvfs.exists(dbPath):
|
|
||||||
try:
|
try:
|
||||||
connection = KodiSQL()
|
connection = KodiSQL()
|
||||||
cursor = connection.cursor( )
|
cursor = connection.cursor( )
|
||||||
|
@ -155,8 +154,6 @@ def addKodiSource(name, path, type):
|
||||||
cursor.close()
|
cursor.close()
|
||||||
except:
|
except:
|
||||||
error = True
|
error = True
|
||||||
else:
|
|
||||||
error = True
|
|
||||||
|
|
||||||
# add it to sources.xml
|
# add it to sources.xml
|
||||||
sourcesFile = xbmc.translatePath( "special://profile/sources.xml" )
|
sourcesFile = xbmc.translatePath( "special://profile/sources.xml" )
|
||||||
|
|
Loading…
Reference in a new issue