diff options
author | Max Kellermann <max@duempel.org> | 2014-02-03 23:30:34 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-03 23:50:19 +0100 |
commit | b9c248e7e7a451aa8aa2718323abd02a73d3dab5 (patch) | |
tree | e4cf7e376b7e8147b81532fc9b1c396061a0c3a1 /src/command/PlaylistCommands.cxx | |
parent | d533b59ee33f13df854b0adb2588ab03bcaedfff (diff) | |
download | mpd-b9c248e7e7a451aa8aa2718323abd02a73d3dab5.tar.gz mpd-b9c248e7e7a451aa8aa2718323abd02a73d3dab5.tar.xz mpd-b9c248e7e7a451aa8aa2718323abd02a73d3dab5.zip |
PlaylistFile: use class SongLoader
Diffstat (limited to 'src/command/PlaylistCommands.cxx')
-rw-r--r-- | src/command/PlaylistCommands.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/command/PlaylistCommands.cxx b/src/command/PlaylistCommands.cxx index f624386a6..10dfff876 100644 --- a/src/command/PlaylistCommands.cxx +++ b/src/command/PlaylistCommands.cxx @@ -188,13 +188,8 @@ handle_playlistadd(Client &client, gcc_unused int argc, char *argv[]) bool success; Error error; if (uri_has_scheme(uri)) { - if (!uri_supported_scheme(uri)) { - command_error(client, ACK_ERROR_NO_EXIST, - "unsupported URI scheme"); - return CommandResult::ERROR; - } - - success = spl_append_uri(playlist, uri, error); + const SongLoader loader(client); + success = spl_append_uri(playlist, loader, uri, error); } else { #ifdef ENABLE_DATABASE success = search_add_to_playlist(uri, playlist, nullptr, |