From a443348d4b8ffc1f108513ad82c5d37f7ec70f29 Mon Sep 17 00:00:00 2001 From: Javier Domingo Date: Fri, 6 Sep 2013 16:54:36 +0200 Subject: [PATCH] mpd: Don't decide the remove action Those three lines shouldn't be there. That is tracklist/playback logic, not frontend logic. Indeed, care is already taken in core =) --- mopidy/frontends/mpd/protocol/current_playlist.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mopidy/frontends/mpd/protocol/current_playlist.py b/mopidy/frontends/mpd/protocol/current_playlist.py index 055d39e6..20452203 100644 --- a/mopidy/frontends/mpd/protocol/current_playlist.py +++ b/mopidy/frontends/mpd/protocol/current_playlist.py @@ -101,9 +101,6 @@ def deleteid(context, tlid): Deletes the song ``SONGID`` from the playlist """ tlid = int(tlid) - tl_track = context.core.playback.current_tl_track.get() - if tl_track and tl_track.tlid == tlid: - context.core.playback.next() tl_tracks = context.core.tracklist.remove(tlid=tlid).get() if not tl_tracks: raise MpdNoExistError('No such song', command='deleteid')