From b6346a49cf28bcb7227f01f79ca32b425f3ecf7c Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 27 Jul 2017 18:46:58 -0500 Subject: [PATCH] Failsafe for artwork In case key exists but value is None. Prevent invalid artwork url. --- resources/lib/artwork.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 4cae9648..4b537140 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -520,6 +520,8 @@ class Artwork(object): def get_artwork(item_id, type_, tag): + if not tag: return + artwork = ("%s/emby/Items/%s/Images/%s/0?" "MaxWidth=%s&MaxHeight=%s&Format=original&Tag=%s%s" % (self.server, item_id, type_, max_width, max_height, tag, custom_query))