HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Mrakobes on 2020-01-01 18:04:42

Title: Masstagger: how to include space
Post by: Mrakobes on 2020-01-01 18:04:42
how to take a space into account when renaming, the fact is that when I rename

$replace((%title%),Feat.,feat.

the second point is reached, I consider it a way to use a space, but the masteragger does not take it into account

$replace((%title%),Feat. ,feat. ,

I read this topic, it seems like a similar situation, but I did not find a solution, either surrounded by apostrophes

https://hydrogenaud.io/index.php?topic=56362.msg506262#msg506262
Title: Re: Masstagger: how to include space
Post by: kode54 on 2020-01-01 23:17:58
Wrap the entire parameter in single quotes / apostrophes. You have to wrap literal parentheses too.

$replace('('%title%')','Feat. ','feat. ')
Title: Re: Masstagger: how to include space
Post by: Mrakobes on 2020-01-02 09:32:18
Wrap the entire parameter in single quotes / apostrophes. You have to wrap literal parentheses too.

$replace('('%title%')','Feat. ','feat. ')

$replace($replace($replace($caps2(%title%), ,  ,'[','('), A , a , An , an , The , the , And , and , But , but , Or , or , Nor , nor , At , at , By , by , For , for , From , from , In , in , Into , into , Of , of , Off , off , On , on , Onto , onto , Out , out , Over , over , To , to , Unto , unto , Up , up , With , with , As , as , Feat,feat,Feat,feat.,ft.,feat.,ft,feat.,Featuring,feat.,Vs,vs,DJ,Dj,remix,Remix,–,-,—,-,hidden,Hidden,track,Track,remix,Remix,bonus,Bonus,part,Part,acoustic,Acoustic,version,Version),  , )

I apologize for the inaccurate question. I have this line, here surround apostrophes only commas near ','Feat. ','feat. ' so that another renaming does not break
Title: Re: Masstagger: how to include space
Post by: Mrakobes on 2020-01-02 18:05:38
Wrap the entire parameter in single quotes / apostrophes. You have to wrap literal parentheses too.

$replace('('%title%')','Feat. ','feat. ')

$replace('('%title%')','Feat. ','feat. ')

(Name (feat. Test))

this option brackets the whole name of the song, but I just wanted to change the capitalization

$replace((%title%),'Feat. ','feat. ') dont work, help
Title: Re: Masstagger: how to include space
Post by: kode54 on 2020-01-02 23:08:10
You can't use the parentheses in that parameter, they're special characters that need to be quoted. Using parentheses on the parameter will not make it selectively operate on the parentheses of the string. This requires more complex parsing than simple quoting can do.