diff --git a/resources/lib/TextureCache.py b/resources/lib/TextureCache.py index 6c75a280..215c517f 100644 --- a/resources/lib/TextureCache.py +++ b/resources/lib/TextureCache.py @@ -186,7 +186,7 @@ class TextureCache(): cacheimage = True # Only for the main backdrop, poster - if imageType in {"fanart", "poster"}: + if imageType in ("fanart", "poster"): # Delete current entry before updating with the new one self.deleteCachedArtwork(url) @@ -195,7 +195,7 @@ class TextureCache(): cursor.execute(query, (imageUrl, kodiId, mediaType, imageType)) # Cache fanart and poster in Kodi texture cache - if cacheimage and imageType in {"fanart", "poster"}: + if cacheimage and imageType in ("fanart", "poster"): self.CacheTexture(imageUrl) def CacheTexture(self, url): diff --git a/resources/lib/WriteKodiVideoDB.py b/resources/lib/WriteKodiVideoDB.py index a4f13b4b..ff9f8323 100644 --- a/resources/lib/WriteKodiVideoDB.py +++ b/resources/lib/WriteKodiVideoDB.py @@ -1100,7 +1100,7 @@ class WriteKodiVideoDB(): def AddTagsToMedia(self, id, tags, mediatype, cursor): # First, delete any existing tags associated to the id - if self.kodiversion in {15, 16}: + if self.kodiversion in (15, 16): # Kodi Isengard, Jarvis query = "DELETE FROM tag_link WHERE media_id = ? AND media_type = ?" cursor.execute(query, (id, mediatype)) @@ -1116,7 +1116,7 @@ class WriteKodiVideoDB(): def AddTagToMedia(self, id, tag, mediatype, cursor, doRemove=False): - if self.kodiversion in {15, 16}: + if self.kodiversion in (15, 16): # Kodi Isengard, Jarvis cursor.execute("SELECT tag_id FROM tag WHERE name = ? COLLATE NOCASE", (tag,)) try: