Quote:
Originally Posted by CuddlyMakani
It has the fandoms "Marvel Cinematic Universe", "Iron Man (Movies)", "The Avengers (Marvel Movies)".
My .ini has already lines to replace the last two with the first:
replace_metadata:
(space)category=>Iron Man \(Movies\)=>Marvel Cinematic Universe
(space)category=>The Avengers \(Marvel Movies\)=>Marvel Cinematic Universe
The first line works without a problem.
But the thing that I don't understand is: The second one replaces the fandom with "Marvel Cinematic Universe (Marvel Cinematic Universe Movies)".
|
FYI, use the [code] tags to surround INI sections to preserve whitespace (the '#' button in the full post editor).
I can put (only) those two lines in and get the expected behavior.
I suspect that you have a line somewhere for "Marvel=>Marvel Cinematic Universe" or something like that that you've forgotten or it's in a different section.
When you want to match and replace exactly and only a particular string (and not substrings), put '^' and '$' around the pattern to indicate string beginning and end. IE, this will only replace "Marvel" alone and not inside any other string:
Code:
replace_metadata:
^Marvel$=>Marvel Cinematic Universe