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
1 changed files with 4 additions and 7 deletions

View File

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