Failsafe for artwork

In case key exists but value is None. Prevent invalid artwork url.
This commit is contained in:
angelblue05 2017-07-27 18:46:58 -05:00
parent 6147475629
commit b6346a49cf

View file

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