mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -07:00
Fallback pms_image_proxy when no image imput received
This commit is contained in:
parent
66a0f953b3
commit
73f8f83658
2 changed files with 5 additions and 2 deletions
|
@ -4047,6 +4047,10 @@ class WebInterface(object):
|
|||
```
|
||||
"""
|
||||
if not img and not rating_key:
|
||||
if fallback in common.DEFAULT_IMAGES:
|
||||
fbi = common.DEFAULT_IMAGES[fallback]
|
||||
fp = os.path.join(plexpy.PROG_DIR, 'data', fbi)
|
||||
return serve_file(path=fp, content_type='image/png')
|
||||
logger.warn('No image input received.')
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue