Change episode image fallback to art

This commit is contained in:
JonnyWong16 2016-04-28 00:02:51 -07:00
parent b327413bfa
commit f66afc4cae
11 changed files with 35 additions and 27 deletions

View file

@ -1905,6 +1905,14 @@ class WebInterface(object):
return fallback_image
except IOError, e:
logger.error(u"Unable to read fallback %s image: %s" % (fallback, e))
elif fallback == 'art':
logger.info(u"Trying fallback image...")
try:
fallback_image = open(self.interface_dir + common.DEFAULT_ART, 'rb')
cherrypy.response.headers['Content-type'] = 'image/png'
return fallback_image
except IOError, e:
logger.error(u"Unable to read fallback %s image: %s" % (fallback, e))
return None