mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
remove redundant add
This commit is contained in:
parent
6dbdb88fa7
commit
b8481129cf
1 changed files with 2 additions and 2 deletions
|
@ -894,13 +894,13 @@ class WriteKodiDB():
|
||||||
pathid = pathid + 1
|
pathid = pathid + 1
|
||||||
pathsql="insert into path(idPath, strPath) values(?, ?)"
|
pathsql="insert into path(idPath, strPath) values(?, ?)"
|
||||||
cursor.execute(pathsql, (pathid,path))
|
cursor.execute(pathsql, (pathid,path))
|
||||||
|
'''
|
||||||
cursor.execute("select coalesce(max(idPath),0) as pathid from path")
|
cursor.execute("select coalesce(max(idPath),0) as pathid from path")
|
||||||
pathid = cursor.fetchone()[0]
|
pathid = cursor.fetchone()[0]
|
||||||
pathid = pathid + 1
|
pathid = pathid + 1
|
||||||
pathsql="insert into path(idPath, strPath) values(?, ?)"
|
pathsql="insert into path(idPath, strPath) values(?, ?)"
|
||||||
cursor.execute(pathsql, (pathid,path))
|
cursor.execute(pathsql, (pathid,path))
|
||||||
|
'''
|
||||||
if fileType == "episode":
|
if fileType == "episode":
|
||||||
cursor.execute("SELECT idFile as fileidid FROM episode WHERE idEpisode = ?",(id,))
|
cursor.execute("SELECT idFile as fileidid FROM episode WHERE idEpisode = ?",(id,))
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
|
|
Loading…
Reference in a new issue