mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 16:22:57 -07:00
Add self-hosted static images
This commit is contained in:
parent
7f67213ff7
commit
e9a1b2ea38
12 changed files with 64 additions and 27 deletions
|
@ -5602,6 +5602,10 @@ class WebInterface(object):
|
|||
def newsletter(self, *args, **kwargs):
|
||||
if args:
|
||||
if len(args) >= 2 and args[0] == 'image':
|
||||
if args[1] == 'images':
|
||||
resource_dir = os.path.join(str(plexpy.PROG_DIR), 'data/interfaces/default/')
|
||||
return serve_file(path=os.path.join(resource_dir, *args[1:]), content_type='image/png')
|
||||
|
||||
return self.image(args[1], refresh=True)
|
||||
|
||||
newsletter_uuid = args[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue