Feature request
I'm writing a client for MPD, and I need to know album and artist for a given directory, but not recursively. I can't find a good solution with the current commands and filters (as i try to avoid listall and listallmeta as the doc says).
I wish there was a non-recursively version of list album "(base 'directory')", because for now I have to find some workarounds, such as:
list album "(base 'directory')" "(!(base 'dir/subdir'))" "(!(base 'dir/subdir2'))" ...
lits album "(file =~ 'directory/[^/]+$')"
I think that it's very usual to group music collections in structure like:
~/music
~/music/artist1
~/music/artist1/album1
~/music/artist1/album2
~/music/artist1/album2/pictures/
~/music/artist2
~/music/artist2/lives/
~/music/artist2/lives/album1
~/music/artist2/lives/album2
~/music/subcollection/artist3
~/music/subcollection/artist3/album1
The albumart command is based on that common directory structure.
I don't want to use list artist album ALBUMTITLE because many albums can have the same name. And list album group artist doesn't work, because in an album directory there could be many artists (e.g. for collective albums or albums containing a song by many artists), which is not the same as different albums with the same title by differents artists. I can use list file album ALBUMTITLE and check the file paths in my application, but it seems even worst than the previous workarounds.
What I would like to use is as simple as:
list album "(dir 'somedir')"
list artist group somedirectory
I really need the directory (album URI) because of non-songs files stored in them, such as tags (keywords inherited from ancestores directories) and about (text about the album).
But maybe you have any ideas?
(Of course I could try to make a PR for that feature.)
Feature request
I'm writing a client for MPD, and I need to know
albumandartistfor a given directory, but not recursively. I can't find a good solution with the current commands and filters (as i try to avoidlistallandlistallmetaas the doc says).I wish there was a non-recursively version of
list album "(base 'directory')", because for now I have to find some workarounds, such as:I think that it's very usual to group music collections in structure like:
The
albumartcommand is based on that common directory structure.I don't want to use
list artist album ALBUMTITLEbecause many albums can have the same name. Andlist album group artistdoesn't work, because in an album directory there could be many artists (e.g. for collective albums or albums containing a song by many artists), which is not the same as different albums with the same title by differents artists. I can uselist file album ALBUMTITLEand check the file paths in my application, but it seems even worst than the previous workarounds.What I would like to use is as simple as:
I really need the directory (album URI) because of non-songs files stored in them, such as
tags(keywords inherited from ancestores directories) andabout(text about the album).But maybe you have any ideas?
(Of course I could try to make a PR for that feature.)