From e814dbddbae5e2a3930c4876140e8a97fe471d5b Mon Sep 17 00:00:00 2001 From: Shaun Date: Thu, 4 Jan 2018 14:54:54 +1100 Subject: [PATCH] on playback if we dont know about the file being played then ignore it --- resources/lib/play_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lib/play_utils.py b/resources/lib/play_utils.py index 6366110..f4e3503 100644 --- a/resources/lib/play_utils.py +++ b/resources/lib/play_utils.py @@ -591,8 +591,12 @@ class Service(xbmc.Player): current_playing_file = xbmc.Player().getPlayingFile() log.debug("onPlayBackStarted: {0}", current_playing_file) - log.debug("played_information: {0}", self.played_information) + + if current_playing_file not in self.played_information: + log.debug("This file was not started by EmbyCon") + return + data = self.played_information[current_playing_file] data["paused"] = False data["currently_playing"] = True