From 4ad3ef00fcd1bc5cfe1d76adf9f542281a012a13 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Wed, 1 Apr 2015 09:12:35 +0200 Subject: [PATCH] error in thshow path assignment --- resources/lib/WriteKodiDB.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/resources/lib/WriteKodiDB.py b/resources/lib/WriteKodiDB.py index bb5e96e5..c431537d 100644 --- a/resources/lib/WriteKodiDB.py +++ b/resources/lib/WriteKodiDB.py @@ -937,10 +937,6 @@ class WriteKodiDB(): cursor.execute("SELECT idPath as curpathid FROM files WHERE idFile = ?",(fileid,)) result = cursor.fetchone() curpathid = result[0] - - #remove the old path if different - if curpathid != pathid: - cursor.execute("DELETE FROM path WHERE idPath = ?",(curpathid,)) #set the new path and filename to the episode cursor.execute("UPDATE files SET idPath = ?, strFilename = ? WHERE idFile = ?", (pathid,filename,fileid))