few small changes for utils

This commit is contained in:
shaun 2015-03-27 11:24:49 +11:00
parent e2e847db29
commit a69918f13f

View file

@ -84,10 +84,10 @@ def checkKodiSources():
return True
def KodiSQL():
if xbmc.getinfolabel("System.BuildVersion").startswith("13"):
if xbmc.getInfoLabel("System.BuildVersion").startswith("13"):
#gotham
dbVersion = "78"
if xbmc.getinfolabel("System.BuildVersion").startswith("15"):
if xbmc.getInfoLabel("System.BuildVersion").startswith("15"):
#isengard
dbVersion = "91"
else:
@ -142,7 +142,6 @@ def addKodiSource(name, path, type):
error = False
if xbmcvfs.exists(dbPath):
try:
connection = KodiSQL()
cursor = connection.cursor( )
@ -155,8 +154,6 @@ def addKodiSource(name, path, type):
cursor.close()
except:
error = True
else:
error = True
# add it to sources.xml
sourcesFile = xbmc.translatePath( "special://profile/sources.xml" )