From e90a4a9d32d59edf5cfc92d846cefb5982113b37 Mon Sep 17 00:00:00 2001 From: faush01 Date: Mon, 30 Mar 2015 16:13:27 +1100 Subject: [PATCH] replace \ with / before compare of old and new paths The getPlayUrl forces all / so we need to make sure we are using that --- resources/lib/WriteKodiDB.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lib/WriteKodiDB.py b/resources/lib/WriteKodiDB.py index 8d79759f..25f693b0 100644 --- a/resources/lib/WriteKodiDB.py +++ b/resources/lib/WriteKodiDB.py @@ -879,6 +879,7 @@ class WriteKodiDB(): oldFileName = utils.convertEncoding(oldFileName) newFileName = utils.convertEncoding(newFileName) + # only perform changes if the path actually differs if oldFileName != newFileName: @@ -891,6 +892,8 @@ class WriteKodiDB(): cursor = connection.cursor( ) utils.logMsg("MB3 Sync","setting filename in kodi db..." + fileType + ": " + str(id)) + #utils.logMsg("MB3 Sync","Old Name : " + oldFileName) + #utils.logMsg("MB3 Sync","New Name : " + newFileName) try: print oldFileName except: