mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Failsafe for artwork
In case key exists but value is None. Prevent invalid artwork url.
This commit is contained in:
parent
6147475629
commit
b6346a49cf
1 changed files with 2 additions and 0 deletions
|
@ -520,6 +520,8 @@ class Artwork(object):
|
||||||
|
|
||||||
def get_artwork(item_id, type_, tag):
|
def get_artwork(item_id, type_, tag):
|
||||||
|
|
||||||
|
if not tag: return
|
||||||
|
|
||||||
artwork = ("%s/emby/Items/%s/Images/%s/0?"
|
artwork = ("%s/emby/Items/%s/Images/%s/0?"
|
||||||
"MaxWidth=%s&MaxHeight=%s&Format=original&Tag=%s%s"
|
"MaxWidth=%s&MaxHeight=%s&Format=original&Tag=%s%s"
|
||||||
% (self.server, item_id, type_, max_width, max_height, tag, custom_query))
|
% (self.server, item_id, type_, max_width, max_height, tag, custom_query))
|
||||||
|
|
Loading…
Reference in a new issue