From 5dbcb48093d92295f01545f58ec8bf7dc0d8742c Mon Sep 17 00:00:00 2001 From: blacktwin Date: Mon, 6 Nov 2017 10:25:28 -0500 Subject: [PATCH] missing session stop command session.stop(reason=KILL_MESSAGE) --- killstream/wait_kill_pause_notify_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/killstream/wait_kill_pause_notify_main.py b/killstream/wait_kill_pause_notify_main.py index f32c8a6..af8ecd0 100644 --- a/killstream/wait_kill_pause_notify_main.py +++ b/killstream/wait_kill_pause_notify_main.py @@ -92,9 +92,9 @@ def kill_stream(session, xtime, ntime): title = (session.grandparentTitle + ' - ' if session.type == 'episode' else '') + session.title if state == 'paused' and xtime == ntime: - session.stop(reason=KILL_MESSAGE) if AGENT_ID: send_notification(SUBJECT_TEXT, BODY_TEXT.format(user=username, title=title)) + session.stop(reason=KILL_MESSAGE) return ntime elif state in ('playing', 'buffering'): sys.stdout.write("{user}'s stream of {title} is now {state}".format(user=username, title=title,