mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Allow fallback to another pms image
This commit is contained in:
parent
3631e723bc
commit
4ae1f6cef9
1 changed files with 5 additions and 0 deletions
|
@ -4811,6 +4811,11 @@ class WebInterface(object):
|
||||||
fbi = common.DEFAULT_IMAGES[fallback]
|
fbi = common.DEFAULT_IMAGES[fallback]
|
||||||
fp = os.path.join(plexpy.PROG_DIR, 'data', fbi)
|
fp = os.path.join(plexpy.PROG_DIR, 'data', fbi)
|
||||||
return serve_file(path=fp, content_type='image/png')
|
return serve_file(path=fp, content_type='image/png')
|
||||||
|
elif fallback:
|
||||||
|
return self.real_pms_image_proxy(
|
||||||
|
img=fallback, rating_key=None, width=width, height=height,
|
||||||
|
opacity=opacity, background=background, blur=blur, img_format=img_format,
|
||||||
|
fallback=None, refresh=refresh, clip=clip, **kwargs)
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
def image(self, *args, **kwargs):
|
def image(self, *args, **kwargs):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue