error in thshow path assignment
This commit is contained in:
parent
80ec5d9b29
commit
4ad3ef00fc
1 changed files with 0 additions and 4 deletions
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue