error in thshow path assignment

This commit is contained in:
Marcel van der Veldt 2015-04-01 09:12:35 +02:00
parent 80ec5d9b29
commit 4ad3ef00fc

View file

@ -938,10 +938,6 @@ class WriteKodiDB():
result = cursor.fetchone() result = cursor.fetchone()
curpathid = result[0] 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 #set the new path and filename to the episode
cursor.execute("UPDATE files SET idPath = ?, strFilename = ? WHERE idFile = ?", (pathid,filename,fileid)) cursor.execute("UPDATE files SET idPath = ?, strFilename = ? WHERE idFile = ?", (pathid,filename,fileid))