mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Hex-encoded ampersand characters in game names are now converted correctly when scraping with ScreenScraper.
This commit is contained in:
parent
f23b5a6c6e
commit
886f368fd9
|
@ -351,6 +351,8 @@ void ScreenScraperRequest::processGame(const pugi::xml_document& xmldoc,
|
|||
{region, "wor", "us", "ss", "eu", "jp"})
|
||||
.text()
|
||||
.get()};
|
||||
// Game names sometimes contain ampersands encoded as hex codes.
|
||||
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", ""));
|
||||
LOG(LogDebug) << "ScreenScraperRequest::processGame(): Name: " << result.mdl.get("name");
|
||||
|
|
Loading…
Reference in a new issue