mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Keep /newsletter/image proxy for backwards compatibility
This commit is contained in:
parent
63bfe96124
commit
8185cc1c40
1 changed files with 11 additions and 0 deletions
|
@ -5733,6 +5733,17 @@ class WebInterface(object):
|
|||
@cherrypy.expose
|
||||
def newsletter(self, *args, **kwargs):
|
||||
if args:
|
||||
# Keep this for backwards compatibility for images through /newsletter/image
|
||||
if len(args) >= 2 and args[0] == 'image':
|
||||
if args[1] == 'images':
|
||||
resource_dir = os.path.join(str(plexpy.PROG_DIR), 'data/interfaces/default/')
|
||||
try:
|
||||
return serve_file(path=os.path.join(resource_dir, *args[1:]), content_type='image/png')
|
||||
except NotFound:
|
||||
return
|
||||
|
||||
return self.image(args[1])
|
||||
|
||||
if len(args) >= 2 and args[0] == 'id':
|
||||
newsletter_id_name = args[1]
|
||||
newsletter_uuid = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue