From c557cbdb9316f9378be19d70e20ba36c984c1553 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 8 Jul 2018 12:53:03 +0200 Subject: [PATCH] Fix Plex Companion crashing when connected to Plex Web --- resources/lib/plexbmchelper/subscribers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/plexbmchelper/subscribers.py b/resources/lib/plexbmchelper/subscribers.py index ece0f390..4c1f3675 100644 --- a/resources/lib/plexbmchelper/subscribers.py +++ b/resources/lib/plexbmchelper/subscribers.py @@ -114,6 +114,7 @@ class SubscriptionMgr(object): self.server = "" self.protocol = "http" self.port = "" + self.isplaying = False self.location = 'navigation' # In order to be able to signal a stop at the end self.last_params = {} @@ -150,6 +151,7 @@ class SubscriptionMgr(object): Returns a timeline xml as str (xml containing video, audio, photo player state) """ + self.isplaying = False self.location = 'navigation' answ = str(XML) timelines = { @@ -198,10 +200,11 @@ class SubscriptionMgr(object): 'type': ptype, 'state': 'stopped' } + self.isplaying = True + self.stop_sent_to_web = False if ptype in (v.PLEX_PLAYLIST_TYPE_VIDEO, v.PLEX_PLAYLIST_TYPE_PHOTO): self.location = 'fullScreenVideo' - self.stop_sent_to_web = False pbmc_server = utils.window('pms_server') if pbmc_server: (self.protocol, self.server, self.port) = pbmc_server.split(':')