Fix incorrect stream_duration parameter for playback start notifications

This commit is contained in:
JonnyWong16 2018-07-06 18:43:57 -07:00
parent e766cb6093
commit 0950ff7ecf

View file

@ -527,7 +527,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
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)