mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Change episode image fallback to art
This commit is contained in:
parent
b327413bfa
commit
f66afc4cae
11 changed files with 35 additions and 27 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue