> On Sep 20, 2017, at 3:45 PM, Daniele Giglio <[email protected]> wrote: > > Il giorno mercoledì 20 settembre 2017 17:54:32 UTC+2, Adrian Sampson ha > scritto: > That’s an interesting question. One tactic you might use would exploit the > fact that m3u playlists are (usually) just plain text files with paths to > music files in them. For that reason, a crazy pipeline like this might work: > > $ xargs -d'\n' beet modify category=special < list_of_paths.m3u > > I haven’t tested that, but if you read up on xargs’s docs, you might be able > to turn it into something that actually works. :) > > Thank you Adrian > I had understood that 'modify' only work on queries, I will make a test. > By the way, I had removed the question since the last commit introduces the > tagging capability on importing, and it's my case.
Aha; cool! For posterity, `modify` (like most other beets commands) *does* only work on queries. The trick is that paths can be treated as queries! Anything with a / in it is automatically treated as a path query, as if you had written `path:` before it. http://docs.beets.io/en/v1.4.5/reference/query.html#path-queries Adrian -- You received this message because you are subscribed to the Google Groups "beets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
