mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
error in thshow path assignment
This commit is contained in:
parent
80ec5d9b29
commit
4ad3ef00fc
1 changed files with 0 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue