From a749b71f7f78d2da00d4e54371586590c02259ac Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 1 Dec 2018 15:17:33 -0800 Subject: [PATCH] Fix activity resume after buffering --- plexpy/activity_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexpy/activity_handler.py b/plexpy/activity_handler.py index cbcdb601..57013b41 100644 --- a/plexpy/activity_handler.py +++ b/plexpy/activity_handler.py @@ -266,6 +266,7 @@ class ActivityHandler(object): last_rating_key = str(db_session['rating_key']) last_live_uuid = db_session['live_uuid'] last_transcode_key = db_session['transcode_key'].split('/')[-1] + last_paused = db_session['last_paused'] # Make sure the same item is being played if this_rating_key == last_rating_key or this_live_uuid == last_live_uuid: @@ -280,7 +281,7 @@ class ActivityHandler(object): if this_state != last_state: if this_state == 'paused': self.on_pause() - elif last_state == 'paused' and this_state == 'playing': + elif last_paused and this_state == 'playing': self.on_resume() elif this_state == 'stopped': self.on_stop()