mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
small fix for episode adds
This commit is contained in:
parent
d174f4793f
commit
64b9594bb7
1 changed files with 2 additions and 2 deletions
|
@ -686,9 +686,9 @@ class WriteKodiVideoDB():
|
||||||
|
|
||||||
# Validate the path in database
|
# Validate the path in database
|
||||||
if self.directpath:
|
if self.directpath:
|
||||||
cursor.execute("SELECT idFile as fileid FROM files WHERE strFilename = ? and idPath = ?", (filename, pathid,))
|
cursor.execute("SELECT idPath as pathid FROM path WHERE strPath = ?", (path,))
|
||||||
else:
|
else:
|
||||||
cursor.execute("SELECT idFile as fileid FROM files WHERE strFilename LIKE ? and idPath = ?", (filename, embyId,))
|
cursor.execute("SELECT idPath as pathid FROM path WHERE strPath LIKE ?", (seriesId,))
|
||||||
try:
|
try:
|
||||||
pathid = cursor.fetchone()[0]
|
pathid = cursor.fetchone()[0]
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue