Renaming files not working

help
filename
scripting
filenaming
musicbrainz
picard
Tags: #<Tag:0x00007f2a046f2f68> #<Tag:0x00007f2a046f2b30> #<Tag:0x00007f2a046f26d0> #<Tag:0x00007f2a046f23b0> #<Tag:0x00007f2a046f1ed8> #<Tag:0x00007f2a046f1b40>

#1

I have been using this for a while, and recently when i tag the music and save them, the renaming does not work for some songs, but works for others. I cant figure out why it does that! My script is $if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),%album%/)$if($gt(%totaldiscs%,1),)$if($ne(%albumartist%,), ,)$if(%_multiartist%,%artist% - ,)%title%
Im a simple guy and i just want the file to be named : Artist name (Ft. Artists (if any)) - Title .
This works only for some songs, and other files just shoes the title of the song.

EDIT: Im also using Mac Os sierra 10.12.3
and the picard version of 1.3.2


#2

@outsidecontext, any ideas here? :slight_smile:


#3

I think it is about this part of the script:

$if(%_multiartist%,%artist% - ,)

This will only set the artist if it is a release with multiple artists. Try replacing this with just "%artist% - " and it should work for all releases.


#4

Omg it worked! Thank you so much! you’re an absolute legend! :smiley: