mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Add ability to delete artwork from database
This commit is contained in:
parent
d7364afbf5
commit
05a375d826
2 changed files with 12 additions and 1 deletions
|
@ -84,3 +84,9 @@ class Artwork(object):
|
||||||
|
|
||||||
elif artwork.get(art):
|
elif artwork.get(art):
|
||||||
self.update(*(artwork[art],) + args + (KODI[art],))
|
self.update(*(artwork[art],) + args + (KODI[art],))
|
||||||
|
|
||||||
|
def delete(self, *args):
|
||||||
|
|
||||||
|
''' Delete artwork from kodi database
|
||||||
|
'''
|
||||||
|
self.cursor.execute(QU.delete_art, args)
|
||||||
|
|
|
@ -551,6 +551,11 @@ delete_episode = """
|
||||||
DELETE FROM episode
|
DELETE FROM episode
|
||||||
WHERE idEpisode = ?
|
WHERE idEpisode = ?
|
||||||
"""
|
"""
|
||||||
|
delete_art = """
|
||||||
|
DELETE FROM art
|
||||||
|
WHERE media_id = ?
|
||||||
|
AND media_type = ?
|
||||||
|
"""
|
||||||
delete_backdrops = """
|
delete_backdrops = """
|
||||||
DELETE FROM art
|
DELETE FROM art
|
||||||
WHERE media_id = ?
|
WHERE media_id = ?
|
||||||
|
|
Loading…
Reference in a new issue