Post by gtI wanted only the artists, but my cmus v2.3.4 doesn't support the -e
option. So with only the -l switch, the output is the same as that of
the ~/.cmus/lib.pl file.
Then I suggest you upgrade to git master or pu, otherwise you are
missing all the great features added in the last months :-).
Post by gtWhat i ended up doing was c-a h from inside screen in cmus's library
view. This gave a decent enough output :P
What does the metadata output look like?
The output looks like this:
file /path/to/file1
duration 260
codec mp3
bitrate 320000
tag artist The Beatles
tag album Abbey Road
tag title Come Together
file /path/to/file2
duration 183
codec mp3
bitrate 320000
tag artist The Beatles
tag album Abbey Road
tag title Something
There are no additional newlines between two tracks (technical reasons),
but the entries can be split on the "^file" line. If you are just
interested in the artists, this would do:
$ cmus-remote -C "save -e -l -" | sed -n "s/^tag artist \(.*\)/\1/p" | sort -u
Hope this helps!
Johannes