From 5b58db6cec6835b5d099614333907f5336c051b5 Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 2 Apr 2018 18:07:49 +0200 Subject: [PATCH] Fix Plex Companion thinking video is playing again - Fixes #449 --- resources/lib/plexbmchelper/subscribers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/plexbmchelper/subscribers.py b/resources/lib/plexbmchelper/subscribers.py index 2db7e765..17d8019a 100644 --- a/resources/lib/plexbmchelper/subscribers.py +++ b/resources/lib/plexbmchelper/subscribers.py @@ -197,7 +197,7 @@ class SubscriptionMgr(object): if pbmc_server: (self.protocol, self.server, self.port) = pbmc_server.split(':') self.server = self.server.replace('/', '') - status = 'paused' if info['speed'] == '0' else 'playing' + status = 'paused' if int(info['speed']) == 0 else 'playing' duration = kodi_time_to_millis(info['totaltime']) shuffle = '1' if info['shuffled'] else '0' mute = '1' if info['muted'] is True else '0' @@ -362,7 +362,7 @@ class SubscriptionMgr(object): item = playqueue.items[info['position']] except IndexError: return self.last_params - status = 'paused' if info['speed'] == '0' else 'playing' + status = 'paused' if int(info['speed']) == 0 else 'playing' params = { 'state': status, 'ratingKey': item.plex_id,