Create new class to handle HTTP requests
Some more clean-up
This commit is contained in:
@@ -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':
|
||||
|
Reference in New Issue
Block a user