mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Added support to ScreenScraper to interpret the HTML copyright character code.
This commit is contained in:
parent
2f0ef3f45c
commit
f975468d3a
|
@ -353,8 +353,11 @@ void ScreenScraperRequest::processGame(const pugi::xml_document& xmldoc,
|
|||
std::string description = find_child_by_attribute_list(game.child("synopsis"),
|
||||
"synopsis", "langue", { language, "en", "wor" }).text().get();
|
||||
|
||||
if (!description.empty())
|
||||
// Translate some HTML character codes to UTF-8 characters.
|
||||
if (!description.empty()) {
|
||||
result.mdl.set("desc", Utils::String::replace(description, " ", " "));
|
||||
result.mdl.set("desc", Utils::String::replace(description, "©", "©"));
|
||||
}
|
||||
|
||||
// Get the date proper. The API returns multiple 'date' children nodes to the 'dates'
|
||||
// main child of 'jeu'.
|
||||
|
|
Loading…
Reference in a new issue