From 382caba05a711c0ae78a3b9bd30b636450f2f4ff Mon Sep 17 00:00:00 2001 From: Johannes Knutsen Date: Fri, 13 Aug 2010 19:56:25 +0200 Subject: [PATCH] call playback.next if we try to delete current playing track --- mopidy/frontends/mpd/protocol/current_playlist.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mopidy/frontends/mpd/protocol/current_playlist.py b/mopidy/frontends/mpd/protocol/current_playlist.py index 1c1c1764..30acbe89 100644 --- a/mopidy/frontends/mpd/protocol/current_playlist.py +++ b/mopidy/frontends/mpd/protocol/current_playlist.py @@ -83,6 +83,8 @@ def deleteid(frontend, cpid): """ try: cpid = int(cpid) + if frontend.backend.playback.current_cpid == cpid: + frontend.backend.playback.next() return frontend.backend.current_playlist.remove(cpid=cpid) except LookupError: raise MpdNoExistError(u'No such song', command=u'deleteid')