Totally lost how to make this naming script working (even ChatGPT won't help)

V

VinylSlut

Guest
Dear community, can someone please have a look at what could be wrong with my script?

Code:
$if2(%albumartistsort%,%artistsort%,%artist%)
/
$if(
    $if2(%albumsort%,%album%),
    [$if2(%originalyear%,%year%)] $if2(%albumsort%,%album%),
    [] Unreleased
)
$if(
    $if($in(%releasetype%,album),
    $if($in(%releasetype%,soundtrack), \[Soundtrack\])
    $if($in(%releasetype%,single), \[Single\])
    $if($in(%releasetype%,ep), \[EP\])

){%musicbrainz_albumid%}
/
$if($gt(%totaldiscs%,1),%discnumber%-,)
$if(%tracknumber%,$num(%tracknumber%,2) ,)
$if(%artist%,%artist% - ,)
$if2(%titlesort%,%title%)

It seems to me that the middle part of the script breaks it. This is the part which:

  • adds [Single], [EP] or [Soundtrack] to folder name if the release is singe, ep or soundtrack. If release is album the release type is not added to the folder name
  • always adds {musicbrainz album ID} at the very end of the folder name, regardless of the release type

Picard returns error message when I try this script: Unexpected character ‘[’

Thank you a lot for your advice guys!

2 posts - 2 participants

Read full topic

Continue reading...
 
Top