From 8b9c116f265ea3b20f8855dfc1332963bb00ded3 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 2 Feb 2017 17:09:20 +0100 Subject: [PATCH] Fix removing uniqueid and ratings --- resources/lib/itemtypes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index 788372dd..a1bc573c 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -480,8 +480,8 @@ class Movies(Items): kodicursor.execute("DELETE FROM files WHERE idFile = ?", (file_id,)) if v.KODIVERSION >= 17: - plex_db.remove_uniqueid(kodi_id, kodi_type) - plex_db.remove_ratings(kodi_id, kodi_type) + self.kodi_db.remove_uniqueid(kodi_id, kodi_type) + self.kodi_db.remove_ratings(kodi_id, kodi_type) elif kodi_type == v.KODI_TYPE_SET: # Delete kodi boxset boxset_movies = plex_db.getItem_byParentId(kodi_id, @@ -1189,8 +1189,8 @@ class TVShows(Items): self.artwork.deleteArtwork(kodi_id, v.KODI_TYPE_SHOW, kodicursor) kodicursor.execute("DELETE FROM tvshow WHERE idShow = ?", (kodi_id,)) if v.KODIVERSION >= 17: - self.plex_db.remove_uniqueid(kodi_id, v.KODI_TYPE_SHOW) - self.plex_db.remove_ratings(kodi_id, v.KODI_TYPE_SHOW) + self.kodi_db.remove_uniqueid(kodi_id, v.KODI_TYPE_SHOW) + self.kodi_db.remove_ratings(kodi_id, v.KODI_TYPE_SHOW) log.info("Removed tvshow: %s." % kodi_id) def removeSeason(self, kodiid):