small fix for episode adds

This commit is contained in:
Marcel van der Veldt 2015-07-28 01:16:24 +02:00
parent d174f4793f
commit 64b9594bb7
1 changed files with 2 additions and 2 deletions

View File

@ -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: