diff options
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/DatabaseCommands.cxx | 3 | ||||
-rw-r--r-- | src/command/PlaylistCommands.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/command/DatabaseCommands.cxx b/src/command/DatabaseCommands.cxx index ef6fb922e..89fe2e050 100644 --- a/src/command/DatabaseCommands.cxx +++ b/src/command/DatabaseCommands.cxx @@ -124,7 +124,8 @@ handle_searchaddpl(Client &client, int argc, char *argv[]) if (db == nullptr) return print_error(client, error); - return search_add_to_playlist(*db, "", playlist, &filter, error) + return search_add_to_playlist(*db, *client.GetStorage(), + "", playlist, &filter, error) ? CommandResult::OK : print_error(client, error); } diff --git a/src/command/PlaylistCommands.cxx b/src/command/PlaylistCommands.cxx index 0997cc68d..6406b0770 100644 --- a/src/command/PlaylistCommands.cxx +++ b/src/command/PlaylistCommands.cxx @@ -196,7 +196,8 @@ handle_playlistadd(Client &client, gcc_unused int argc, char *argv[]) if (db == nullptr) return print_error(client, error); - success = search_add_to_playlist(*db, uri, playlist, nullptr, + success = search_add_to_playlist(*db, *client.GetStorage(), + uri, playlist, nullptr, error); #else success = false; |