mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Update activity card on Live TV rollover
This commit is contained in:
parent
0cbde5a2f5
commit
c8831efb28
2 changed files with 6 additions and 3 deletions
|
@ -76,7 +76,8 @@ DOCUMENTATION :: END
|
||||||
user_href = page('user', data['user_id']) if data['user_id'] else '#'
|
user_href = page('user', data['user_id']) if data['user_id'] else '#'
|
||||||
%>
|
%>
|
||||||
<div class="dashboard-activity-instance" id="activity-instance-${sk}" data-key="${sk}" data-id="${data['session_id']}"
|
<div class="dashboard-activity-instance" id="activity-instance-${sk}" data-key="${sk}" data-id="${data['session_id']}"
|
||||||
data-rating_key="${data['rating_key']}" data-parent_rating_key="${data['parent_rating_key']}" data-grandparent_rating_key="${data['grandparent_rating_key']}">
|
data-rating_key="${data['rating_key']}" data-parent_rating_key="${data['parent_rating_key']}" data-grandparent_rating_key="${data['grandparent_rating_key']}"
|
||||||
|
data-guid="${data['guid']}">
|
||||||
<div class="dashboard-activity-container">
|
<div class="dashboard-activity-container">
|
||||||
<%
|
<%
|
||||||
if data['live']:
|
if data['live']:
|
||||||
|
|
|
@ -356,8 +356,10 @@
|
||||||
var instance = $('#activity-instance-' + key);
|
var instance = $('#activity-instance-' + key);
|
||||||
|
|
||||||
// Create a new instance if it doesn't exist or recreate the entire instance
|
// Create a new instance if it doesn't exist or recreate the entire instance
|
||||||
// if the rating key changed (for movies or episodes) with the same session key
|
// if the rating key changed (for movies or episodes) of guid changed (for live tv) with the same session key
|
||||||
if (!(instance.length) || (s.media_type !== 'track' && s.rating_key !== instance.data('rating_key').toString())) {
|
if (!(instance.length) ||
|
||||||
|
(s.media_type !== 'track' && s.rating_key !== instance.data('rating_key').toString()) ||
|
||||||
|
(s.live === 1 && s.guid !== instance.data('guid'))) {
|
||||||
create_instances.push(key);
|
create_instances.push(key);
|
||||||
getActivityInstance(key);
|
getActivityInstance(key);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue