Ah, I see. Ideally I'd like to do this at import though, one command to type instead of two. I have _a lot_ of media to import, already sorted by genre (using directory names). I can't import thousands of album and then set their directory artist by artist. So doing something like below would be perfect:
beet import --set-import-variable=savedir:metal /somePath/
And then being able to use the "savedir" variable in the path configuration. The only alternative I found for that is to add that extra field to the items scope during import.
Would something like this make sense?
I like that feature request J Hopefully somebody will implement it soon.
In the meantime, I’ll explore your suggestion using the album’s import path, probably easier than what I started with.
Thanks for taking the time to answer my admittedly stupid questions!
De : beets...@googlegroups.com [mailto:beets...@googlegroups.com] De la part de Adrian Sampson
Envoyé : vendredi 19 février 2016 19:04
So I have tried the suggestion below (“store any data you like”) but I’m still stuck.
I have edited (from foobar2000) a bunch of albums and added the “savedir” field to the tracks. The value of that field is “metal”
I created a path section like so in config.yaml:
paths:
default: _sort/$albumartist/$albumartist - $year - $album/$disc_and_track. $title
savedir:metal: metal_hard-rock/$albumartist/$albumartist - $year - $album/$disc_and_track. $title
When I import an album initially, it gets put under “_sort” – as I understand this is because beets, upon import, can read only the standard fields. But once they are imported, all the fields are stored in the database and beets can read them, correct?
So with that in mind I tried to move them. If I do “beet mv” there’s no file to move. The documentation says “you can query on this field in your path formats to sort this music differently. Put something like this in your configuration file ». But doesn’t give any example of command that would move the files using the new path section.
I really wish we could specify which paths section to use upon import (ie: beets import –path=savedir:metal /<some dir>) !
De : beets...@googlegroups.com [mailto:beets...@googlegroups.com] De la part de Adrian Sampson
Envoyé : vendredi 19 février 2016 19:04
So just to be clear, the idea is to import once, which will use the default path, then use beet to modify the savedir field and when that happens beets will also move the files to the appropriate path I've setup? It'll be time consuming but it should work?
Also, if you implement the feature request to set explicit fields at import, then beet will use the appropriate path upon the initial import instead of having to do two steps as described above?