mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Remove maxheight/maxwidth from artwork
To avoid image processing server side and grab original images only.
This commit is contained in:
parent
b31c8dd4d7
commit
93525652ae
1 changed files with 4 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue