From e606bd512f2b4477b47827258fcdf5a582525dd9 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 2 Dec 2017 08:51:23 -0800 Subject: [PATCH] Fix missing 'or' in condition for on_stop notifications --- plexpy/notification_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index c03debb4..09b54a3e 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -168,7 +168,7 @@ def notify_conditions(notify_action=None, stream_data=None, timeline_data=None): if notify_action == 'on_stop': return (plexpy.CONFIG.NOTIFY_CONSECUTIVE or - (stream_data['media_type'] == 'movie' and progress_percent < plexpy.CONFIG.MOVIE_WATCHED_PERCENT) + (stream_data['media_type'] == 'movie' and progress_percent < plexpy.CONFIG.MOVIE_WATCHED_PERCENT) or (stream_data['media_type'] == 'episode' and progress_percent < plexpy.CONFIG.TV_WATCHED_PERCENT)) elif notify_action == 'on_resume':