From 7f2610642b1dd26c849869deb410bada9523551f Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 16 Jun 2015 20:24:54 -0500 Subject: [PATCH] Quick follow up Prevent from picking up the temp journal file Kodi creates. --- resources/lib/Utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/Utils.py b/resources/lib/Utils.py index 8f81f5e2..5722e6a8 100644 --- a/resources/lib/Utils.py +++ b/resources/lib/Utils.py @@ -66,7 +66,7 @@ def getKodiVideoDBPath(): dirs, files = xbmcvfs.listdir("special://database") dbVersion = "" - for database in files: + for database in files and "journal" not in database: if "MyVideos" in database: dbVersion = database @@ -80,7 +80,7 @@ def getKodiMusicDBPath(): dirs, files = xbmcvfs.listdir("special://database") dbVersion = "" - for database in files: + for database in files and "journal" not in database: if "MyMusic" in database: dbVersion = database