mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 09:42:57 -07:00
Fix some issues where some channel streams are being reported as episodes.
Fix images for activity pane when channels/clips are being played.
This commit is contained in:
parent
39ae387e0e
commit
2d739f64cf
2 changed files with 21 additions and 4 deletions
|
@ -80,8 +80,17 @@ DOCUMENTATION :: END
|
||||||
<div class="dashboard-activity-cover-face-bg" style="background-image: url(pms_image_proxy?img=${a['thumb']}&width=300&height=300);"></div>
|
<div class="dashboard-activity-cover-face-bg" style="background-image: url(pms_image_proxy?img=${a['thumb']}&width=300&height=300);"></div>
|
||||||
<div class="dashboard-activity-cover-face" style="background-image: url(pms_image_proxy?img=${a['thumb']}&width=300&height=300);"></div>
|
<div class="dashboard-activity-cover-face" style="background-image: url(pms_image_proxy?img=${a['thumb']}&width=300&height=300);"></div>
|
||||||
% elif a['type'] == 'clip':
|
% elif a['type'] == 'clip':
|
||||||
<div class="dashboard-activity-clip-face-bg" style="background-image: url(${a['thumb']});"></div>
|
% if a['art'][:4] == 'http':
|
||||||
<div class="dashboard-activity-clip-face" style="background-image: url(${a['thumb']});"></div>
|
<div class="dashboard-activity-poster-face" style="background-image: url(${a['art']});"></div>
|
||||||
|
% elif a['thumb'][:4] == 'http':
|
||||||
|
<div class="dashboard-activity-poster-face" style="background-image: url(${a['thumb']});"></div>
|
||||||
|
% else:
|
||||||
|
% if a['art']:
|
||||||
|
<div class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${a['art']}&width=500&height=280);"></div>
|
||||||
|
% else:
|
||||||
|
<div class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${a['thumb']}&width=500&height=280);"></div>
|
||||||
|
% endif
|
||||||
|
% endif
|
||||||
% else:
|
% else:
|
||||||
<div class="dashboard-activity-cover-face" style="background-image: url(pms_image_proxy?img=${a['thumb']}&width=300&height=300&fallback=cover);"></div>
|
<div class="dashboard-activity-cover-face" style="background-image: url(pms_image_proxy?img=${a['thumb']}&width=300&height=300&fallback=cover);"></div>
|
||||||
% endif
|
% endif
|
||||||
|
|
|
@ -748,9 +748,13 @@ class PmsConnect(object):
|
||||||
'duration': duration,
|
'duration': duration,
|
||||||
'progress': progress,
|
'progress': progress,
|
||||||
'progress_percent': str(helpers.get_percent(progress, duration)),
|
'progress_percent': str(helpers.get_percent(progress, duration)),
|
||||||
'type': helpers.get_xml_attr(session, 'type'),
|
|
||||||
'indexes': use_indexes
|
'indexes': use_indexes
|
||||||
}
|
}
|
||||||
|
if helpers.get_xml_attr(session, 'ratingKey').isdigit():
|
||||||
|
session_output['type'] = helpers.get_xml_attr(session, 'type')
|
||||||
|
else:
|
||||||
|
session_output['type'] = 'clip'
|
||||||
|
|
||||||
elif helpers.get_xml_attr(session, 'type') == 'movie':
|
elif helpers.get_xml_attr(session, 'type') == 'movie':
|
||||||
session_output = {'session_key': helpers.get_xml_attr(session, 'sessionKey'),
|
session_output = {'session_key': helpers.get_xml_attr(session, 'sessionKey'),
|
||||||
'media_index': helpers.get_xml_attr(session, 'index'),
|
'media_index': helpers.get_xml_attr(session, 'index'),
|
||||||
|
@ -797,9 +801,13 @@ class PmsConnect(object):
|
||||||
'duration': duration,
|
'duration': duration,
|
||||||
'progress': progress,
|
'progress': progress,
|
||||||
'progress_percent': str(helpers.get_percent(progress, duration)),
|
'progress_percent': str(helpers.get_percent(progress, duration)),
|
||||||
'type': helpers.get_xml_attr(session, 'type'),
|
|
||||||
'indexes': use_indexes
|
'indexes': use_indexes
|
||||||
}
|
}
|
||||||
|
if helpers.get_xml_attr(session, 'ratingKey').isdigit():
|
||||||
|
session_output['type'] = helpers.get_xml_attr(session, 'type')
|
||||||
|
else:
|
||||||
|
session_output['type'] = 'clip'
|
||||||
|
|
||||||
elif helpers.get_xml_attr(session, 'type') == 'clip':
|
elif helpers.get_xml_attr(session, 'type') == 'clip':
|
||||||
session_output = {'session_key': helpers.get_xml_attr(session, 'sessionKey'),
|
session_output = {'session_key': helpers.get_xml_attr(session, 'sessionKey'),
|
||||||
'media_index': helpers.get_xml_attr(session, 'index'),
|
'media_index': helpers.get_xml_attr(session, 'index'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue