mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Add refresh button to images
This commit is contained in:
parent
6a58895d37
commit
0f92dc0fdf
14 changed files with 114 additions and 13 deletions
|
@ -3209,6 +3209,8 @@ class WebInterface(object):
|
|||
logger.error('No image input received.')
|
||||
return
|
||||
|
||||
refresh = True if refresh == 'true' else False
|
||||
|
||||
if rating_key and not img:
|
||||
img = '/library/metadata/%s/thumb/1337' % rating_key
|
||||
|
||||
|
@ -3245,7 +3247,7 @@ class WebInterface(object):
|
|||
raise Exception(u'PMS image request failed')
|
||||
|
||||
except Exception as e:
|
||||
logger.exception(u'Failed to get image %s, falling back to %s.' % (img, fallback))
|
||||
logger.warn(u'Failed to get image %s, falling back to %s.' % (img, fallback))
|
||||
fbi = None
|
||||
if fallback == 'poster':
|
||||
fbi = common.DEFAULT_POSTER_THUMB
|
||||
|
|
|
@ -190,17 +190,17 @@ def initialize(options):
|
|||
'tools.auth.on': False,
|
||||
'tools.sessions.on': False
|
||||
},
|
||||
'/pms_image_proxy': {
|
||||
'tools.staticdir.on': True,
|
||||
'tools.staticdir.dir': os.path.join(plexpy.CONFIG.CACHE_DIR, 'images'),
|
||||
'tools.caching.on': True,
|
||||
'tools.caching.force': True,
|
||||
'tools.caching.delay': 0,
|
||||
'tools.expires.on': True,
|
||||
'tools.expires.secs': 60 * 60 * 24 * 30, # 30 days
|
||||
'tools.auth.on': False,
|
||||
'tools.sessions.on': False
|
||||
},
|
||||
#'/pms_image_proxy': {
|
||||
# 'tools.staticdir.on': True,
|
||||
# 'tools.staticdir.dir': os.path.join(plexpy.CONFIG.CACHE_DIR, 'images'),
|
||||
# 'tools.caching.on': True,
|
||||
# 'tools.caching.force': True,
|
||||
# 'tools.caching.delay': 0,
|
||||
# 'tools.expires.on': True,
|
||||
# 'tools.expires.secs': 60 * 60 * 24 * 30, # 30 days
|
||||
# 'tools.auth.on': False,
|
||||
# 'tools.sessions.on': False
|
||||
#},
|
||||
'/favicon.ico': {
|
||||
'tools.staticfile.on': True,
|
||||
'tools.staticfile.filename': os.path.abspath(os.path.join(plexpy.PROG_DIR, 'data/interfaces/default/images/favicon.ico')),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue