Remove maxheight/maxwidth from artwork

To avoid image processing server side and grab original images only.
This commit is contained in:
angelblue05 2018-02-09 15:32:12 -06:00
parent b31c8dd4d7
commit 93525652ae

View file

@ -512,19 +512,16 @@ class Artwork(object):
def get_backdrops(item_id, backdrops): def get_backdrops(item_id, backdrops):
for index, tag in enumerate(backdrops): for index, tag in enumerate(backdrops):
artwork = ("%s/emby/Items/%s/Images/Backdrop/%s?" artwork = ("%s/emby/Items/%s/Images/Backdrop/%s?Format=original&Tag=%s%s"
"MaxWidth=%s&MaxHeight=%s&Format=original&Tag=%s%s" % (self.server, item_id, index, tag, custom_query))
% (self.server, item_id, index, max_width, max_height,
tag, custom_query))
all_artwork['Backdrop'].append(artwork) all_artwork['Backdrop'].append(artwork)
def get_artwork(item_id, type_, tag, override_name=None): def get_artwork(item_id, type_, tag, override_name=None):
if not tag: return if not tag: return
artwork = ("%s/emby/Items/%s/Images/%s/0?" artwork = ("%s/emby/Items/%s/Images/%s/0?Format=original&Tag=%s%s"
"MaxWidth=%s&MaxHeight=%s&Format=original&Tag=%s%s" % (self.server, item_id, type_, tag, custom_query))
% (self.server, item_id, type_, max_width, max_height, tag, custom_query))
all_artwork[override_name or type_] = artwork all_artwork[override_name or type_] = artwork
# Process backdrops # Process backdrops