diff --git a/resources/lib/player.py b/resources/lib/player.py index d222ebb3..c322cc7d 100644 --- a/resources/lib/player.py +++ b/resources/lib/player.py @@ -43,15 +43,19 @@ def _check_video(self): if not getCondVisibility('videoplayer.content(episodes)'): return self.state.track = True - self.reset_queue() if callable(getattr(Player, 'onAVStarted', None)): def onAVStarted(self): # pylint: disable=invalid-name """Will be called when Kodi has a video or audiostream""" self._check_video() + + def onPlayBackStarted(self): # pylint: disable=invalid-name + """Will be called when kodi starts playing a file""" + self.reset_queue() else: def onPlayBackStarted(self): # pylint: disable=invalid-name """Will be called when kodi starts playing a file""" + self.reset_queue() self._check_video() def onPlayBackPaused(self): # pylint: disable=invalid-name