Kodi Community Forum

Full Version: Replace _ with whitespace
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
One of my GetSearchResults delivers me the movie in "this_is_the_movie_i_was_looking_for" format.

Its working but not looking so good.

How can I replace some with whitespaces?

Quite a nub question, but I really couldn't figure it out.
flobbes Wrote:One of my GetSearchResults delivers me the movie in "this_is_the_movie_i_was_looking_for" format.

Its working but not looking so good.

How can I replace some with whitespaces?

Quite a nub question, but I really couldn't figure it out.

Do a regex on the "this_is_the_movie_i_was_looking_for", search "_+" and replace with " (\1)". It's something along those lines but I'm unable to check it at work. See thetvdb scraper, the createsearchurl replaces spaces with "%20"