def onPlayBackStopped(self): self._source.stop() self._pl.clear() xbmc.Player.onPlayBackStopped(self)