From 93525652aef79c7d2c4884215b333af78dfd3496 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 9 Feb 2018 15:32:12 -0600 Subject: [PATCH] Remove maxheight/maxwidth from artwork To avoid image processing server side and grab original images only. --- resources/lib/artwork.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 6240b254..aa1701fe 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -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