'Tell the playback controller that the current playlist has changed.
Used by :class:`mopidy.core.TracklistController`.'

def _on_tracklist_change(self):

    if (not self.core.tracklist.tl_tracks):
        self.stop()
        self._set_current_tl_track(None)
    elif (self.get_current_tl_track() not in self.core.tracklist.tl_tracks):
        self._set_current_tl_track(None)
