Fix incorrect stream_duration parameter for playback start notifications
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user