Quick follow up

Prevent from picking up the temp journal file Kodi creates.
This commit is contained in:
angelblue05 2015-06-16 20:24:54 -05:00
parent 3c1ce16da0
commit 7f2610642b

View file

@ -66,7 +66,7 @@ def getKodiVideoDBPath():
dirs, files = xbmcvfs.listdir("special://database") dirs, files = xbmcvfs.listdir("special://database")
dbVersion = "" dbVersion = ""
for database in files: for database in files and "journal" not in database:
if "MyVideos" in database: if "MyVideos" in database:
dbVersion = database dbVersion = database
@ -80,7 +80,7 @@ def getKodiMusicDBPath():
dirs, files = xbmcvfs.listdir("special://database") dirs, files = xbmcvfs.listdir("special://database")
dbVersion = "" dbVersion = ""
for database in files: for database in files and "journal" not in database:
if "MyMusic" in database: if "MyMusic" in database:
dbVersion = database dbVersion = database