Change case in title only after " - "


#1

Hello all and thanks to your help.

Since a long time, with this forum, I'll try to Change case in title only after " - " Exemple :
I have : "Title that I like - special version"
I wanted : "Title that I like - Special Version"

I'll try many many things but nothing's works :frowning:

Can someone can explain me how to ?
(Sorry for my poor english)
Thanks !


#2

What about an action group with 3 actions:
1
Guess value
Source: %title%
Target: %title% - %my_case%

2
Case convertion for MY_CASE
Conversion: Mixed Case
Word starts:

3
Format value for TITLE
Format string: %title% - %my_case%

and possibly a 4th action to delete MY_CASE. But I would add that after a test run so that you do not loose any data.


#3

Wow !! You Rocks !
This works like a charm !
Really thanks.
Yeah !!!!!

I test with erase "MY_CASE" and it's OK !

Here is the script :

----------------------------------------------CUT HERE--------------------------------------------
[#0]
T=7
F=%title%
1=%title% - %my_case%

[#1]
T=1
F=MY_CASE
1=1
2=

[#2]
T=5
F=TITLE
1=%title% - %my_case%

[#3]
T=9
F=MY_CASE
----------------------------------------------CUT HERE--------------------------------------------

Juste to say :
If there's no version (example : "Title that I like"), this script add " - " after the text :
Before : "Title that I like"
After : "Title that I like - "
It may a problem if we have different things. Exemple :

Before :
"Title that I like - special version"
"Title that I like too"
"Title that I detest"

After :
"Title that I like - Special Version"
"Title that I like too - "
"Title that I detest - "

:wink:
May be another add can fix this but I'm not expert ! :stuck_out_tongue_winking_eye:


#5

Hi,
Does anyone can help me to modify the script ?
Something like:
"find if ' - ' exist in the title, if it's ok : rename, if ko : don't rename"

Sorry I'm not the best into MP3Tag script !
:wink:
Thanks !


#6

What about filtering?

%title% HAS " - "
(this also reduces the number of treated files and may speed up things)


#7

Thanks but how add this, and were ?
I'm not expert of synthax.


#8

Have a look at the help about filtering:
http://help.mp3tag.de/main_filter.html


#9

I saw that, but I don't understand WHERE add "%title% HAS..."
Actions are a little bit strange when you begin. :wink:


#10


#11

Instead of filtering you could change the format string to:
%title%[ - %mycase%]


#12

Thanks LyricsLover ! OK for the filter !!!

Poster : Cool !!
I update by :
%title%[ - %my_case%]

And now it's :
----------------------------------------------CUT HERE--------------------------------------------
[#0]
T=1
F=TITLE
1=8
2=

[#1]
T=7
F=%title%
1=%title% - %my_case%

[#2]
T=1
F=MY_CASE
1=1
2=

[#3]
T=5
F=TITLE
1=%title%[ - %my_case%]

[#4]
T=9
F=MY_CASE
----------------------------------------------CUT HERE--------------------------------------------

Works great, I thank you all !!