mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix favorites
This commit is contained in:
parent
c8c43dadee
commit
7672410601
2 changed files with 9 additions and 9 deletions
|
@ -294,4 +294,4 @@ class Kodi(object):
|
|||
except TypeError:
|
||||
return
|
||||
|
||||
self.cursor.execute(QU.delete_tag, (tag,) + args)
|
||||
self.cursor.execute(QU.delete_tag, (tag_id,) + args)
|
||||
|
|
|
@ -90,11 +90,11 @@ get_tag = """ SELECT tag_id
|
|||
WHERE name = ?
|
||||
COLLATE NOCASE
|
||||
"""
|
||||
get_tag_movie_obj = [ "{MovieId}", "Favorite movies", "movie"
|
||||
get_tag_movie_obj = [ "Favorite movies","{MovieId}","movie"
|
||||
]
|
||||
get_tag_mvideo_obj = [ "{MvideoId}", "Favorite musicvideos", "musicvideo"
|
||||
get_tag_mvideo_obj = [ "Favorite musicvideos","{MvideoId}","musicvideo"
|
||||
]
|
||||
get_tag_episode_obj = [ "{KodiId}", "Favorite tvshows", "tvshow"
|
||||
get_tag_episode_obj = [ "Favorite tvshows","{KodiId}","tvshow"
|
||||
]
|
||||
get_art = """ SELECT url
|
||||
FROM art
|
||||
|
@ -504,14 +504,14 @@ delete_tags = """ DELETE FROM tag_link
|
|||
"""
|
||||
delete_tag = """ DELETE FROM tag_link
|
||||
WHERE tag_id = ?
|
||||
AND media_id = ?
|
||||
AND media_type = ?
|
||||
AND media_id = ?
|
||||
"""
|
||||
delete_tag_movie_obj = [ "{MovieId}","Favorite movies","movie"
|
||||
delete_tag_movie_obj = [ "Favorite movies","{MovieId}","movie"
|
||||
]
|
||||
delete_tag_mvideo_obj = [ "{MvideoId}","Favorite musicvideos","musicvideo"
|
||||
delete_tag_mvideo_obj = [ "Favorite musicvideos","{MvideoId}","musicvideo"
|
||||
]
|
||||
delete_tag_episode_obj = [ "{KodiId}","Favorite tvshows","tvshow"
|
||||
delete_tag_episode_obj = [ "Favorite tvshows","{KodiId}","tvshow"
|
||||
]
|
||||
delete_movie = """ DELETE FROM movie
|
||||
WHERE idMovie = ?
|
||||
|
|
Loading…
Reference in a new issue