Formerly, the output of mpc listall --format ''
included directory paths and not only songs. Attached you can find the patch 0001-command-let-listall-print-songs-only.patch which limits the output songs (as it is already described by mpc's man page). You can apply the patch by piping it through git am. Feel free to adjust the commit message :-) Cheers, Thorsten
From 548926876edac90d99be6ce256b1736bbfbea86a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Wi=C3=9Fmann?= <e...@thorsten-wissmann.de> Date: Tue, 28 Jul 2015 11:40:11 +0200 Subject: [PATCH] command: let listall print songs only The listall command now prints songs only, as described by the man page already. However formerly, mpc listall --format '' printed an empty line for each song and all directory paths. This was annoying and unexpected because in particular the output of mpc listall --format '%file%' and plain mpc listall differed. --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.c b/src/command.c index 53af95d..e7120fb 100644 --- a/src/command.c +++ b/src/command.c @@ -541,7 +541,7 @@ cmd_listall(int argc, char **argv, struct mpd_connection *conn) if (!mpd_send_list_all_meta(conn, tmp)) printErrorAndExit(conn); - print_entity_list(conn, MPD_ENTITY_TYPE_UNKNOWN); + print_entity_list(conn, MPD_ENTITY_TYPE_SONG); } else { if (!mpd_send_list_all(conn, tmp)) printErrorAndExit(conn); -- 2.4.5
signature.asc
Description: PGP signature
_______________________________________________ mpd-devel mailing list mpd-devel@musicpd.org http://mailman.blarg.de/listinfo/mpd-devel