HOZHENWAI / Beets-Plugin_VGMdb

A small plugin to collect metadata from VGMdb and manage a VGMdb collection
13 stars 2 forks source link

Path Format Configuration not working on multi-disc albums #15

Closed u2716 closed 2 years ago

u2716 commented 2 years ago

path format configuration is not respected on multi-disc albums, but it works on single-disc albums. I tried 2 configurations for managing multi-disc albums, both working with musicbrainz:

paths:
    default: $album%aunique{}/$disc-$track $title
plugins: inline
paths:
    default: $album%aunique{}/%if{$multidisc,Disc $disc/}$track $title
item_fields:
    multidisc: 1 if disctotal > 1 else 0

the plugin ignores them and always places multi-disc albums in a folder under another one, called 'Compilations', with all the tracks mixed together, regardeless of my config.

here is example album for debugging: https://vgmdb.net/album/27021 https://musicbrainz.org/release/3cf7f8ef-239f-47db-8537-3882ce65a750

u2716 commented 2 years ago

adding to config.yaml

paths: 
  comp: $album%aunique{}/%if{$multidisc,Disc $disc/}$track $title

fixed the problem. idk why but default: $album%aunique{}/%if{$multidisc,Disc $disc/}$track $title is enough for musicbrainz, but not for vgmdb