Fix syntax causing error on Android

This commit is contained in:
angelblue05 2015-10-12 12:22:51 -05:00
parent 4061d0b7e9
commit 0fd88210b4
2 changed files with 4 additions and 4 deletions

View file

@ -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):

View file

@ -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: