Quick follow

To make sure it doesn't pick up the temp file Kodi creates which is the
same name as the database.
This commit is contained in:
angelblue05 2015-06-16 21:27:50 -05:00
parent 0b0d1aaacc
commit ce312bd2c8

View file

@ -67,7 +67,7 @@ def getKodiVideoDBPath():
dbVersion = "" dbVersion = ""
for database in files: for database in files:
if "MyVideos" in database: if "MyVideos" in database and database.endswith("db"):
dbVersion = database dbVersion = database
dbPath = xbmc.translatePath("special://database/%s" % dbVersion) dbPath = xbmc.translatePath("special://database/%s" % dbVersion)
@ -81,7 +81,7 @@ def getKodiMusicDBPath():
dbVersion = "" dbVersion = ""
for database in files: for database in files:
if "MyMusic" in database: if "MyMusic" in database and database.endswith("db"):
dbVersion = database dbVersion = database
dbPath = xbmc.translatePath("special://database/%s" % dbVersion) dbPath = xbmc.translatePath("special://database/%s" % dbVersion)