mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Added conversion of an additional HTML character code when scraping using ScreenScraper
This commit is contained in:
parent
2822cadc1f
commit
3da749c5e3
|
@ -397,6 +397,7 @@ void ScreenScraperRequest::processGame(const pugi::xml_document& xmldoc,
|
|||
// Translate some HTML character codes to UTF-8 characters for the game name.
|
||||
gameName = Utils::String::replace(gameName, " ", " ");
|
||||
gameName = Utils::String::replace(gameName, "&", "&");
|
||||
gameName = Utils::String::replace(gameName, "'", "‘");
|
||||
|
||||
// In some very rare cases game names contain newline characters that we need to remove.
|
||||
result.mdl.set("name", Utils::String::replace(gameName, "\n", ""));
|
||||
|
@ -453,6 +454,7 @@ void ScreenScraperRequest::processGame(const pugi::xml_document& xmldoc,
|
|||
description = Utils::String::replace(description, """, "\"");
|
||||
description = Utils::String::replace(description, "©", "©");
|
||||
description = Utils::String::replace(description, "'", "'");
|
||||
description = Utils::String::replace(description, "'", "'");
|
||||
result.mdl.set("desc", description);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue