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
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
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]