From 0950ff7ecf52b03b0b5e3784cb21c06422a32fc6 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 6 Jul 2018 18:43:57 -0700 Subject: [PATCH] Fix incorrect stream_duration parameter for playback start notifications --- plexpy/notification_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 1707deb2..16ff6054 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -526,8 +526,8 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m transcode_decision = 'Direct Stream' else: transcode_decision = 'Direct Play' - - if notify_action != 'play': + + if notify_action != 'on_play': stream_duration = int((time.time() - helpers.cast_to_int(session.get('started', 0)) - helpers.cast_to_int(session.get('paused_counter', 0))) / 60)