Add default thumb and art to Live TV library

This commit is contained in:
JonnyWong16
2020-09-26 18:32:13 -07:00
parent bfa4d3dfec
commit ccf0e0dae7
4 changed files with 20 additions and 0 deletions

View File

@@ -4439,6 +4439,10 @@ class WebInterface(object):
None
```
"""
if isinstance(img, str) and img.startswith('interfaces/default/images'):
fp = os.path.join(plexpy.PROG_DIR, 'data', img)
return serve_file(path=fp, content_type='image/png')
if not img and not rating_key:
if fallback in common.DEFAULT_IMAGES:
fbi = common.DEFAULT_IMAGES[fallback]