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',
|
self.cursor.execute('SELECT idPath FROM files WHERE idFile = ? LIMIT 1',
|
||||||
(file_id,))
|
(file_id,))
|
||||||
|
try:
|
||||||
path_id = self.cursor.fetchone()[0]
|
path_id = self.cursor.fetchone()[0]
|
||||||
|
except TypeError:
|
||||||
|
return
|
||||||
self.cursor.execute('DELETE FROM files WHERE idFile = ?',
|
self.cursor.execute('DELETE FROM files WHERE idFile = ?',
|
||||||
(file_id,))
|
(file_id,))
|
||||||
self.cursor.execute('DELETE FROM bookmark WHERE idFile = ?',
|
self.cursor.execute('DELETE FROM bookmark WHERE idFile = ?',
|
||||||
|
|
Loading…
Reference in a new issue