From ce312bd2c832d35bb4e9c55ca98e0c01bc67b3d1 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 16 Jun 2015 21:27:50 -0500 Subject: [PATCH] Quick follow To make sure it doesn't pick up the temp file Kodi creates which is the same name as the database. --- 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..8920fb78 100644 --- a/resources/lib/Utils.py +++ b/resources/lib/Utils.py @@ -67,7 +67,7 @@ def getKodiVideoDBPath(): dbVersion = "" for database in files: - if "MyVideos" in database: + if "MyVideos" in database and database.endswith("db"): dbVersion = database dbPath = xbmc.translatePath("special://database/%s" % dbVersion) @@ -81,7 +81,7 @@ def getKodiMusicDBPath(): dbVersion = "" for database in files: - if "MyMusic" in database: + if "MyMusic" in database and database.endswith("db"): dbVersion = database dbPath = xbmc.translatePath("special://database/%s" % dbVersion)