From 9540e3505c6495e37a91da5fb7cbabbd1dbaf5bc Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 25 Feb 2018 18:42:53 +0100 Subject: [PATCH] Remove obsolete code --- resources/lib/kodidb_functions.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/resources/lib/kodidb_functions.py b/resources/lib/kodidb_functions.py index 6205196e..8015ef33 100644 --- a/resources/lib/kodidb_functions.py +++ b/resources/lib/kodidb_functions.py @@ -942,29 +942,6 @@ class KodiDBMethods(object): )) self.cursor.execute(query, (kodiid, mediatype, oldtag,)) - def removeTag(self, kodiid, tagname, mediatype): - query = ' '.join(( - - "SELECT tag_id", - "FROM tag", - "WHERE name = ?", - "COLLATE NOCASE" - )) - self.cursor.execute(query, (tagname,)) - try: - tag_id = self.cursor.fetchone()[0] - except TypeError: - return - else: - query = ' '.join(( - - "DELETE FROM tag_link", - "WHERE media_id = ?", - "AND media_type = ?", - "AND tag_id = ?" - )) - self.cursor.execute(query, (kodiid, mediatype, tag_id,)) - def addSets(self, movieid, collections, kodicursor): for setname in collections: setid = self.createBoxset(setname)