diff options
author | Max Kellermann <max@duempel.org> | 2010-02-08 10:19:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-02-08 11:11:43 +0100 |
commit | 059d1dc7f252f933ba1c6a9b69116d3eb53c9771 (patch) | |
tree | 8ca576486860e041023687df91376f9524afe008 /src/command.c | |
parent | 7fbb856eee2007570e776ddedf591de65f06aefb (diff) | |
download | mpd-059d1dc7f252f933ba1c6a9b69116d3eb53c9771.tar.gz mpd-059d1dc7f252f933ba1c6a9b69116d3eb53c9771.tar.xz mpd-059d1dc7f252f933ba1c6a9b69116d3eb53c9771.zip |
command: "listplaylist" dumps playlist files
Same for "listplaylistinfo".
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c index 5b94cbe7f..e591d06e3 100644 --- a/src/command.c +++ b/src/command.c @@ -733,6 +733,9 @@ handle_load(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) static enum command_return handle_listplaylist(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) { + if (playlist_file_print(client, argv[1], false)) + return COMMAND_RETURN_OK; + bool ret; ret = spl_print(client, argv[1], false); @@ -748,6 +751,9 @@ static enum command_return handle_listplaylistinfo(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) { + if (playlist_file_print(client, argv[1], true)) + return COMMAND_RETURN_OK; + bool ret; ret = spl_print(client, argv[1], true); |