Is a Custom Folder Structure Possible? #5551
Replies: 1 comment 4 replies
-
After spending the last couple of days reading the docs and combing the interet, I am in a position to answer my own question. I am posting this here in case it helps anyone else.
Yes, it is. However, the first thing to realize is that filenames and paths are generated by rules from fields. You don’t modify them manually. If you're unsure about the desired folder structuure of your music library, it might be good to read this: https://www.reddit.com/r/musichoarder/comments/1b9boeo/folder_structure/
A high-level answer would be to look at flexible attributes and the inline plugin. The move command could also be useful.
You can set a flexible attribute when importing an album, then create a path rule to stick it in the right place. E.g.:
And:
For singles you can run in singleton mode using
Ref.: https://beets.readthedocs.io/en/stable/reference/config.html#path-format-configuration As for
The cleanest solution (as far as I can tell) is to use a flexible attribute. However, you can also move folders within your library using:
I also mentioned the inline plugin. This lets you use Python to customize your path formats. I found this useful, as if I have multiple albums by one artists, I want the folder structure to be like this:
Whereas, if I only have one album by a particular artist, I don't want to create a dedicated artist folder, rather I want:
This can be achieved using the inline plugin like follows:
And albums should be imported like so:
If, at any point, I obtain a second Black Sabbath album, then removing the
Ref.: https://beets.readthedocs.io/en/stable/reference/cli.html#modify I hope this helps someone. I would also be happy to hear if there is a better way to do all of this. |
Beta Was this translation helpful? Give feedback.
-
I would like to create with a custom folder structure for my media. For example:
How would I go about approaching this?
For example, having the following in my config.yaml:
Means that Wu-Tang Clan is imported to the correct folder (
Genres/Rap
). But runningbeet import Powerslave
(an Iron Maiden album) results in a "Heavy Metal" folder being created inGenres
, which is not what I want.Instead I would like each sub genre of metal to be tagged as such (e.g. tagged as "Heavy Metal"), but to be put into the
Genres/Metal
folderAlso, how would I go about importing into
Singles
orAudio Books
?Or what about when an album cannot be found by the MusicBrainz lookup? In this case selecting "Use as-is" results in it being put into
Genres
.Sorry for the unfocussed question, but I would be grateful if someone could point me to where to look. Ideally, it would be great if I could define some
path
rules in my config file and pass a command line flag (or whatever) to indicate which rule to apply on import.Grateful for any advice.
Beta Was this translation helpful? Give feedback.
All reactions