From f975468d3a229ffa0d97cb965f03ec435f2bfed9 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 22 Mar 2021 20:32:54 +0100 Subject: [PATCH] Added support to ScreenScraper to interpret the HTML copyright character code. --- es-app/src/scrapers/ScreenScraper.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/es-app/src/scrapers/ScreenScraper.cpp b/es-app/src/scrapers/ScreenScraper.cpp index 883c410ac..9b0d808f9 100644 --- a/es-app/src/scrapers/ScreenScraper.cpp +++ b/es-app/src/scrapers/ScreenScraper.cpp @@ -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'.