- Thread starter
- Moderator
- #91
can you please upload 1 of your files to DropBox or any other filehoster and PM me the link?
I will have a look after the Easter Holidays.
I will have a look after the Easter Holidays.
$setmulti(multiartists2,%artists%,)
$set(multiartists3,$replace(%multiartists2%,%albumartist%; ,))
$set(multiartists4,$replace(%multiartists3%,;, &))
$set(_variousartist,Various Artists)
$if2(%albumartist%,%artist%)/
$noop( $if($eq(%albumartist%,%artist%),$if(%date%,$left(%date%,4) - )) )
$if($or($inmulti(%artists%,%albumartist%),$if($eq(%albumartist%,%_variousartist%),,1)),$if2($if(%originaldate%,$left(%originaldate%,4) - ,),$if(%date%,$left(%date%,4) - ,)))
$if($ne(%albumartist%,),%album%)
[$upper(%_extension%)]/
$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) - ,)
$noop( $if(%_multiartist%,%artist% - ,) )
$if($and($and(%_multiartist%,$if($in(%artist%,%albumartist%),,1)),$eq(%albumartist%,%_variousartist%)),%artist% - ,)
%title%
$if($if($and($if($and($in(%artist%,%albumartist%),%artists%),1,),$if($eq(%artist%,%albumartist%),,1)),,1),, \(feat. %multiartists4%\))
$if($and($and($ne(%artist%,%albumartist%),$ne(%albumartist%,%_variousartist%)),$not($in(%artist%,%albumartist%))), \(%artist%\),)
the best is to send you on musicbrainz script explanation.Sure, i just need maybe a bit of explanation, what those statements above really do. I understand some of the things, but probably not all of them.
$noop( # set variable read for use in script )
$setmulti(multiartists2,%artists%,)
$set(multiartists3,$replace(%multiartists2%,%albumartist%; ,))
$set(multiartists4,$replace(%multiartists3%,;, &))
$set(_variousartist,Various Artists)
$noop( check if the %albumartist% name = %artist%, if different it recognize the album as VariousArtist or Compilation)
$if2(%albumartist%,%artist%)
$noop( new subfolder)
/
$noop( if it s an album "artist = albumartist" or "artist = contain "various artist" name" , date is added before the album name, else only compilation name)
$if($or($inmulti(%artists%,%albumartist%),$if($eq(%albumartist%,%_variousartist%),,1)),$if2($if(%originaldate%,$left(%originaldate%,4) - ,),$if(%date%,$left(%date%,4) - ,)))
$if($ne(%albumartist%,),%album%)
$noop( add extension file to the album name)
[$upper(%_extension%)]
$noop( new subfolder)
/
$noop( check if the album contain many disc, if yes, the disc number is added before the track number)
$if($gt(%totaldiscs%,1),$num(%discnumber%,1)-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) - ,)
$noop(file name : Album of the artist : title track is added else)
$if($and($and(%_multiartist%,$if($in(%artist%,%albumartist%),,1)),$eq(%albumartist%,%_variousartist%)),%artist% - ,)
%title%
$noop(file name: various artiste : artist name + title track OR Artistalbum + featuring , is keep the title track only as above +"feat. Artist name")
$if($if($and($if($and($in(%artist%,%albumartist%),%artists%),1,),$if($eq(%artist%,%albumartist%),,1)),,1),, \(feat. %multiartists4%\))
$if($and($and($ne(%artist%,%albumartist%),$ne(%albumartist%,%_variousartist%)),$not($in(%artist%,%albumartist%))), \(%artist%\),)