on playback if we dont know about the file being played then ignore it

This commit is contained in:
Shaun
2018-01-04 14:54:54 +11:00
parent 9b9c087b69
commit e814dbddba

View File

@@ -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