Update the stream duration on activity cards

* Fixes #2206

Some clients like Plexamp use the same sessionKey when the track changes.
This commit is contained in:
JonnyWong16 2023-12-03 13:33:37 -08:00
commit 325271a88e
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -584,6 +584,7 @@
// Update the stream progress times
$('#stream-eta-' + key).html(moment().add(parseInt(s.duration) - parseInt(s.view_offset), 'milliseconds').format(time_format));
$('#stream-duration-' + key).html(millisecondsToMinutes(parseInt(s.stream_duration), false));
var stream_view_offset = $('#stream-view-offset-' + key);
stream_view_offset.data('state', s.state);
if (stream_view_offset.data('last_view_offset') !== s.view_offset) {