mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Check use bif setting
This commit is contained in:
parent
9fee0d711a
commit
914e3a3988
3 changed files with 126 additions and 128 deletions
|
@ -62,9 +62,7 @@ DOCUMENTATION :: END
|
||||||
% if data is not None:
|
% if data is not None:
|
||||||
<%
|
<%
|
||||||
from urllib import quote
|
from urllib import quote
|
||||||
|
import plexpy
|
||||||
from plexpy import helpers
|
|
||||||
data['indexes'] = helpers.cast_to_int(data['indexes'])
|
|
||||||
%>
|
%>
|
||||||
<div class="dashboard-instance" id="instance-${data['session_key']}" data-id="${data['session_key']}">
|
<div class="dashboard-instance" id="instance-${data['session_key']}" data-id="${data['session_key']}">
|
||||||
<div class="dashboard-hover-container">
|
<div class="dashboard-hover-container">
|
||||||
|
@ -75,11 +73,11 @@ DOCUMENTATION :: END
|
||||||
% endif
|
% endif
|
||||||
<div class="dashboard-activity-poster" id="poster-${data['session_key']}">
|
<div class="dashboard-activity-poster" id="poster-${data['session_key']}">
|
||||||
% if not data['art'].startswith('interfaces') or not data['thumb'].startswith('interfaces'):
|
% if not data['art'].startswith('interfaces') or not data['thumb'].startswith('interfaces'):
|
||||||
% if (data['media_type'] == 'movie' and not data['indexes']) or (data['indexes'] and not data['view_offset']):
|
% if (data['media_type'] == 'movie' and not plexpy.CONFIG.PMS_USE_BIF) or (plexpy.CONFIG.PMS_USE_BIF and not data['view_offset']):
|
||||||
<div id="bif-${data['session_key']}" class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${data['art']}&width=500&height=280&fallback=art);"></div>
|
<div id="bif-${data['session_key']}" class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${data['art']}&width=500&height=280&fallback=art);"></div>
|
||||||
% elif (data['media_type'] == 'episode' and not data['indexes']) or (data['indexes'] and not data['view_offset']):
|
% elif (data['media_type'] == 'episode' and not plexpy.CONFIG.PMS_USE_BIF) or (plexpy.CONFIG.PMS_USE_BIF and not data['view_offset']):
|
||||||
<div id="bif-${data['session_key']}" class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${data['art']}&width=500&height=280&fallback=art);"></div>
|
<div id="bif-${data['session_key']}" class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${data['art']}&width=500&height=280&fallback=art);"></div>
|
||||||
% elif data['indexes']:
|
% elif plexpy.CONFIG.PMS_USE_BIF:
|
||||||
<div id="bif-${data['session_key']}" class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${data['bif_thumb']}&width=500&height=280&fallback=art); display: none;"></div>
|
<div id="bif-${data['session_key']}" class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${data['bif_thumb']}&width=500&height=280&fallback=art); display: none;"></div>
|
||||||
% else:
|
% else:
|
||||||
% if data['media_type'] == 'track':
|
% if data['media_type'] == 'track':
|
||||||
|
|
|
@ -181,6 +181,7 @@
|
||||||
$('#overlay-play-state-' + key).html(overlay_state);
|
$('#overlay-play-state-' + key).html(overlay_state);
|
||||||
$('#play-state-' + key).html(state_icon);
|
$('#play-state-' + key).html(state_icon);
|
||||||
|
|
||||||
|
% if config['pms_use_bif']:
|
||||||
// if using bif indexes, update the bif thumbnail
|
// if using bif indexes, update the bif thumbnail
|
||||||
if (s.indexes) {
|
if (s.indexes) {
|
||||||
var bif_poster = $('#bif-' + key);
|
var bif_poster = $('#bif-' + key);
|
||||||
|
@ -189,6 +190,7 @@
|
||||||
+ s.bif_thumb + '&width=500&height=280&fallback=art);"></div>').fadeIn(1000, function () { bif_poster.remove() }));
|
+ s.bif_thumb + '&width=500&height=280&fallback=art);"></div>').fadeIn(1000, function () { bif_poster.remove() }));
|
||||||
blurArtwork(key);
|
blurArtwork(key);
|
||||||
}
|
}
|
||||||
|
% endif
|
||||||
|
|
||||||
// if transcoding, update the transcode state
|
// if transcoding, update the transcode state
|
||||||
var ts = '';
|
var ts = '';
|
||||||
|
|
|
@ -172,10 +172,8 @@ class WebInterface(object):
|
||||||
config = {
|
config = {
|
||||||
"home_sections": plexpy.CONFIG.HOME_SECTIONS,
|
"home_sections": plexpy.CONFIG.HOME_SECTIONS,
|
||||||
"home_stats_length": plexpy.CONFIG.HOME_STATS_LENGTH,
|
"home_stats_length": plexpy.CONFIG.HOME_STATS_LENGTH,
|
||||||
"home_stats_cards": plexpy.CONFIG.HOME_STATS_CARDS,
|
|
||||||
"home_library_cards": plexpy.CONFIG.HOME_LIBRARY_CARDS,
|
|
||||||
"pms_identifier": plexpy.CONFIG.PMS_IDENTIFIER,
|
|
||||||
"pms_name": plexpy.CONFIG.PMS_NAME,
|
"pms_name": plexpy.CONFIG.PMS_NAME,
|
||||||
|
"pms_use_bif": plexpy.CONFIG.PMS_USE_BIF,
|
||||||
"update_show_changelog": plexpy.CONFIG.UPDATE_SHOW_CHANGELOG
|
"update_show_changelog": plexpy.CONFIG.UPDATE_SHOW_CHANGELOG
|
||||||
}
|
}
|
||||||
return serve_template(templatename="index.html", title="Home", config=config)
|
return serve_template(templatename="index.html", title="Home", config=config)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue