Track-level query returning list of albums containing those tracks
There are use cases where it is nice to be able to query beets DB on track level, but show results on album level. Currently, If I use beet ls -a ..., then I do see albums only, but the queries involving track fields are ignored. It would be great to see the list of albums in which at least one track matched a track-level query.
Sounds good! One boring part of designing this feature would be the CLI… how should commands indicate that they want this query-by-track, print-by-album behavior? (Maybe it should be a form of query, actually, instead of a command-line flag, so it could work with any command instead of just ls?)
Sometimes I use something like beet ls -f '$album_id' trackLevelQuery | sort -u | xargs <some flags> sh -c "beet ls -af 'some format' id:<xargs replacer>", but would like something more "user-friendly"
Reopening, since #5240 is getting reverted #5326