From 7271e66ab87738be82af96df1488e48df4e54d39 Mon Sep 17 00:00:00 2001 From: samwiseg00 Date: Thu, 18 Oct 2018 22:19:36 -0400 Subject: [PATCH] Fix transcode change creating invalid sessions in the DB --- plexpy/activity_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/activity_handler.py b/plexpy/activity_handler.py index bc7318d6..3084bb38 100644 --- a/plexpy/activity_handler.py +++ b/plexpy/activity_handler.py @@ -282,7 +282,7 @@ class ActivityHandler(object): if this_state == 'buffering': self.on_buffer() - if this_transcode_key != last_transcode_key: + if this_transcode_key != last_transcode_key and this_state != 'stopped': self.on_change() # If a client doesn't register stop events (I'm looking at you PHT!) check if the ratingKey has changed