mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Create new class to handle HTTP requests
Some more clean-up
This commit is contained in:
parent
e1e3659eb3
commit
9b7f529d02
6 changed files with 456 additions and 545 deletions
|
@ -547,8 +547,8 @@ class WebInterface(object):
|
|||
try:
|
||||
pms_connect = pmsconnect.PmsConnect()
|
||||
result = pms_connect.get_image(img, width, height)
|
||||
cherrypy.response.headers['Content-type'] = result[0]
|
||||
return result[1]
|
||||
cherrypy.response.headers['Content-type'] = result[1]
|
||||
return result[0]
|
||||
except:
|
||||
logger.warn('Image proxy queried but errors occured.')
|
||||
if fallback == 'poster':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue