From b9c248e7e7a451aa8aa2718323abd02a73d3dab5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 3 Feb 2014 23:30:34 +0100 Subject: PlaylistFile: use class SongLoader --- src/command/PlaylistCommands.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/command/PlaylistCommands.cxx') 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, -- cgit v1.2.3