def onPlaylistFinished(self):
        log.msg('Playlist finished')

        event = {'event': 'PlaybackFinished',
                 'data': {}}
        self.announce(event)

        self.player.history = deque()
        self.listenerRegistry.onPlaylistFinished()