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
|
||||
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:
|
||||
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:
|
||||
pathid = cursor.fetchone()[0]
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue