mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Fix incorrect stream_duration parameter for playback start notifications
This commit is contained in:
parent
e766cb6093
commit
0950ff7ecf
1 changed files with 2 additions and 2 deletions
|
@ -526,8 +526,8 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
||||||
transcode_decision = 'Direct Stream'
|
transcode_decision = 'Direct Stream'
|
||||||
else:
|
else:
|
||||||
transcode_decision = 'Direct Play'
|
transcode_decision = 'Direct Play'
|
||||||
|
|
||||||
if notify_action != 'play':
|
if notify_action != 'on_play':
|
||||||
stream_duration = int((time.time() -
|
stream_duration = int((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))) / 60)
|
helpers.cast_to_int(session.get('paused_counter', 0))) / 60)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue