parent
4e4e1cea6b
commit
1a7ac665db
1 changed files with 4 additions and 1 deletions
|
@ -230,7 +230,10 @@ class KodiDBMethods(object):
|
|||
"""
|
||||
self.cursor.execute('SELECT idPath FROM files WHERE idFile = ? LIMIT 1',
|
||||
(file_id,))
|
||||
path_id = self.cursor.fetchone()[0]
|
||||
try:
|
||||
path_id = self.cursor.fetchone()[0]
|
||||
except TypeError:
|
||||
return
|
||||
self.cursor.execute('DELETE FROM files WHERE idFile = ?',
|
||||
(file_id,))
|
||||
self.cursor.execute('DELETE FROM bookmark WHERE idFile = ?',
|
||||
|
|
Loading…
Reference in a new issue