Enable PKC to use Kodi DB index "ix_files"
This commit is contained in:
parent
015451d2fd
commit
3d837fcf33
1 changed files with 2 additions and 2 deletions
|
@ -191,8 +191,8 @@ class KodiDBMethods(object):
|
|||
Adds the filename [unicode] to the table files if not already added
|
||||
and returns the idFile.
|
||||
"""
|
||||
query = 'SELECT idFile FROM files WHERE strFilename = ? AND idPath = ?'
|
||||
self.cursor.execute(query, (filename, path_id))
|
||||
query = 'SELECT idFile FROM files WHERE idPath = ? AND strFilename = ?'
|
||||
self.cursor.execute(query, (path_id, filename))
|
||||
try:
|
||||
file_id = self.cursor.fetchone()[0]
|
||||
except TypeError:
|
||||
|
|
Loading…
Reference in a new issue