View Single Post
Old 01-19-2021, 09:59 AM   #5228
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,043
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by CuddlyMakani View Post
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
JimmXinu is offline   Reply With Quote