Check stream watched status before stopped status

Fixes #2506
This commit is contained in:
JonnyWong16 2025-03-23 20:41:30 -07:00
parent 68dc095c83
commit 3e784c7495
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -314,6 +314,10 @@ class ActivityHandler(object):
if self.metadata: if self.metadata:
this_guid = self.metadata['guid'] this_guid = self.metadata['guid']
# Check for stream offset notifications
self.check_markers()
self.check_watched()
# Make sure the same item is being played # Make sure the same item is being played
if (self.rating_key == last_rating_key if (self.rating_key == last_rating_key
or self.rating_key == last_rating_key_websocket or self.rating_key == last_rating_key_websocket
@ -354,10 +358,6 @@ class ActivityHandler(object):
self.on_stop(force_stop=True) self.on_stop(force_stop=True)
self.on_start() self.on_start()
# Check for stream offset notifications
self.check_markers()
self.check_watched()
def check_markers(self): def check_markers(self):
# Monitor if the stream has reached the intro or credit marker offsets # Monitor if the stream has reached the intro or credit marker offsets
self.get_metadata() self.get_metadata()