Fix favorites

This commit is contained in:
angelblue05 2018-09-13 21:00:56 -05:00
parent c8c43dadee
commit 7672410601
2 changed files with 9 additions and 9 deletions

View file

@ -294,4 +294,4 @@ class Kodi(object):
except TypeError: except TypeError:
return return
self.cursor.execute(QU.delete_tag, (tag,) + args) self.cursor.execute(QU.delete_tag, (tag_id,) + args)

View file

@ -90,11 +90,11 @@ get_tag = """ SELECT tag_id
WHERE name = ? WHERE name = ?
COLLATE NOCASE 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 get_art = """ SELECT url
FROM art FROM art
@ -504,14 +504,14 @@ delete_tags = """ DELETE FROM tag_link
""" """
delete_tag = """ DELETE FROM tag_link delete_tag = """ DELETE FROM tag_link
WHERE tag_id = ? WHERE tag_id = ?
AND media_id = ?
AND media_type = ? 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 delete_movie = """ DELETE FROM movie
WHERE idMovie = ? WHERE idMovie = ?