diff options
Diffstat (limited to 'src/command/PlaylistCommands.cxx')
-rw-r--r-- | src/command/PlaylistCommands.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/command/PlaylistCommands.cxx b/src/command/PlaylistCommands.cxx index bd2e24a17..272fb0ee4 100644 --- a/src/command/PlaylistCommands.cxx +++ b/src/command/PlaylistCommands.cxx @@ -193,9 +193,14 @@ handle_playlistadd(Client &client, gcc_unused int argc, char *argv[]) } success = spl_append_uri(uri, playlist, error); - } else + } else { +#ifdef ENABLE_DATABASE success = search_add_to_playlist(uri, playlist, nullptr, error); +#else + success = false; +#endif + } if (!success && !error.IsDefined()) { command_error(client, ACK_ERROR_NO_EXIST, |