I currently have an album artist named The Funk Parlour
. I would like to have the directory saved as Funk Parlour, The
instead, this my current naming script:
$set(album,$strip($rreplace(%album%,["*:<>?/|],)))
$set(albumartist,$rreplace(%albumartist%,["*:<>?|],))
$set(artist,$rreplace(%artist%,["*:<>?|],))
$set(date,$left(%date%,4))
$set(title,$rreplace(%title%,["*:<>?|],))
$if2(%albumartist%,%artist%)/
$if($and(%albumartist%,%date%),%album% \(%date%\)/,)
$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2). ,)%title%
While on the rename topic, I have another question. Sometimes the album artist name ends with a .
dot, which is violation for Windows naming convention. Picard replaces the ending dot with an underscore, I would like to have it removed.
I currently use:
$set(albumartist,$rreplace(%albumartist%,["*:<>?|],))
I’m thinking to use, but this will also delete the round brackets:
$set(albumartist,$rreplace(%albumartist%,["*:<>?|\(.\$\)],))
Edit, this works as expected:
$set(albumartist,$rreplace(%albumartist%,["*:<>?|.\$],))
I’m also trying to replace without success the /
with nothing, into a string like Money / Get My Love / Break Mambo
:
$set(album,$strip($rreplace(%album%,["*:<>?/|],)))
Thank you for your help.