From 0fd88210b41353fd887443c5649753b5e34ab8c3 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 12 Oct 2015 12:22:51 -0500 Subject: [PATCH] Fix syntax causing error on Android --- resources/lib/TextureCache.py | 4 ++-- resources/lib/WriteKodiVideoDB.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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: