# Move compilations from comp folder to soundtracks if a soundtrack
album_fields:
grouped: 1 if genre in ("Anime Soundrack", "Soundtrack") or albumtype == 'soundtrack' else 0
albumtype_soundtrack: '_Soundtracks/%if{$grouped, %the{$grouping}}/[%if{$year,$year,0000}] $album %aunique{}/%if{$multidisc,Disc $disc/$disc-}$track. $title'
I can’t get the grouped field to do what I want. I was hoping that when I did beet update or beet move, they would use the genres I added in post and move to the appropriate folder(s).
Example: I tag an album with the “grouping” Naruto and the “genre” Anime Soundtrack. Upon move or update or w/e, this album should go into the _Soundtracks folder and into a Naruto folder. But nothing happens. I can’t even get most of my soundtrack albums to go to the _Soundtracks folder and I used the order of precedence so that comps are placed if an album isn’t a soundtrack.
It would be useful to break down your configuration one step at a time to see which piece is going wrong. Start with the $grouped field to see if it seems to have the right value; then use it in an %if to see if that works too, then use it in the real expression you want. Separately, try using the albumtype_soundtrack key without the path formatting instructions you want. Using this process of elimination, you can find out exactly which piece needs fixing.
I only attempted the $grouped value query as of now. Here are my results (along with some other queries):
Reminder of relevant line in config:
album_fields:
grouped: 1 if genre in ("Anime Soundrack", "Soundtrack") or albumtype == 'soundtrack' else 0
PS C:\Users\user1> beet ls -af '$album: $grouped' NANA
NANA 707 Soundtracks: 0
NANA 7to8 soundtracks: 0
PS C:\Users\user1> beet ls -af '$album: $grouping' NANA
NANA 707 Soundtracks: $grouping
NANA 7to8 soundtracks: $grouping
PS C:\Users\user1> beet ls -af '$album: $genre' NANA
NANA 707 Soundtracks: Anime Soundtrack
NANA 7to8 soundtracks: Anime Soundtrack
-------------------
PS C:\Users\user1> beet ls -af '$album: $grouped' Violet Evergarden
Violet Evergarden Vocal Album Song Letters: 1
PS C:\Users\user1> beet ls -af '$album: $grouping' Violet Evergarden
Violet Evergarden Vocal Album Song Letters: $grouping
-------------------
PS C:\Users\user1> beet ls -af '$album: $grouped'
juice: 0
Bokura no Ekisu (ボクらのエキス): 0
Buritora Golden Best: 0
MADE IN ABYSS ORIGINAL SOUNDTRACK: 1
Supernatural: 0
Time to Say Goodbye: 0
Hot Shot: 0
Ocean of Love (愛像大海): 0
Permission To Land: 0
Hibana: 0
NANA 707 Soundtracks: 0
NANA 7to8 soundtracks: 0
Violet Evergarden Vocal Album Song Letters: 1
-------------------
PS C:\Users\user1> beet ls -af '$album: $grouping'
Bokura no Ekisu (ボクらのエキス): $grouping
Buritora Golden Best: $grouping
MADE IN ABYSS ORIGINAL SOUNDTRACK: $grouping
Supernatural: $grouping
Time to Say Goodbye: $grouping
Hot Shot: $grouping
Ocean of Love (愛像大海): $grouping
Permission To Land: $grouping
Hibana: $grouping
NANA 707 Soundtracks: $grouping
NANA 7to8 soundtracks: $grouping
Violet Evergarden Vocal Album Song Letters: $grouping
-------------------
PS C:\Users\user1> beet ls -af '$album: $genre'
Bokura no Ekisu (ボクらのエキス): J-Pop; Parody; Comedy
Buritora Golden Best: J-Pop; Parody; Comedy
MADE IN ABYSS ORIGINAL SOUNDTRACK: Anime Soundtrack
Supernatural: Rock
Time to Say Goodbye: Operatic Pop
Hot Shot: Reggae
Ocean of Love (愛像大海): C-Pop
Permission To Land: Rock
Hibana: J-Rock
NANA 707 Soundtracks: Anime Soundtrack
NANA 7to8 soundtracks: Anime Soundtrack
Violet Evergarden Vocal Album Song Letters: Anime Soundtrack
PS C:\Users\user1> beet ls -af '$album: $albumtype'
Bokura no Ekisu (ボクらのエキス):
Buritora Golden Best:
Supernatural:
Time to Say Goodbye:
Hot Shot:
Ocean of Love (愛像大海):
Permission To Land:
Hibana: single
NANA 707 Soundtracks:
NANA 7to8 soundtracks:
Violet Evergarden Vocal Album Song Letters: soundtrack
Why would my $grouping be populated with the word $grouping?
That just indicates that that field is unset. Grouping is a track-level field, not an album-level field. You can get a list showing this using beet fields.