mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 12:59:42 -07:00
Fix regression where {stream_duration} not reported
This commit is contained in:
parent
1d9a4e0b99
commit
5c952b1d86
1 changed files with 3 additions and 4 deletions
|
@ -446,10 +446,9 @@ def build_notify_text(session=None, timeline=None, state=None):
|
||||||
transcode_decision = 'Direct Play'
|
transcode_decision = 'Direct Play'
|
||||||
|
|
||||||
if state != 'play':
|
if state != 'play':
|
||||||
stream_duration = helpers.convert_seconds_to_minutes(
|
stream_duration = int((time.time() -
|
||||||
time.time() -
|
|
||||||
helpers.cast_to_int(session.get('started', 0)) -
|
helpers.cast_to_int(session.get('started', 0)) -
|
||||||
helpers.cast_to_int(session.get('paused_counter', 0)))
|
helpers.cast_to_int(session.get('paused_counter', 0))) / 60)
|
||||||
else:
|
else:
|
||||||
stream_duration = 0
|
stream_duration = 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue