From 3e784c7495f5f7ccd0c358e4c1583af3a996ece3 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 23 Mar 2025 20:41:30 -0700 Subject: [PATCH] Check stream watched status before stopped status Fixes #2506 --- plexpy/activity_handler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plexpy/activity_handler.py b/plexpy/activity_handler.py index 2758133b..8c10b922 100644 --- a/plexpy/activity_handler.py +++ b/plexpy/activity_handler.py @@ -314,6 +314,10 @@ class ActivityHandler(object): if self.metadata: this_guid = self.metadata['guid'] + # Check for stream offset notifications + self.check_markers() + self.check_watched() + # Make sure the same item is being played if (self.rating_key == last_rating_key or self.rating_key == last_rating_key_websocket @@ -354,10 +358,6 @@ class ActivityHandler(object): self.on_stop(force_stop=True) self.on_start() - # Check for stream offset notifications - self.check_markers() - self.check_watched() - def check_markers(self): # Monitor if the stream has reached the intro or credit marker offsets self.get_metadata()