From 1da9a8cf00706af1cd66fe610f3bc77fde5e1be3 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 4 Aug 2023 18:08:59 +0200 Subject: [PATCH] Fixed an issue where ScreenScraper API calls were slightly malformed for systems where multiple platforms were defined --- es-app/src/scrapers/ScreenScraper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/es-app/src/scrapers/ScreenScraper.cpp b/es-app/src/scrapers/ScreenScraper.cpp index 2dd2291f2..2892832f6 100644 --- a/es-app/src/scrapers/ScreenScraper.cpp +++ b/es-app/src/scrapers/ScreenScraper.cpp @@ -248,9 +248,9 @@ void screenscraper_generate_scraper_requests(const ScraperSearchParams& params, p_ids.erase(last, p_ids.end()); for (auto platform = p_ids.cbegin(); platform != p_ids.cend(); ++platform) { - path.append("&systemeid=").append(HttpReq::urlEncode(std::to_string(*platform))); - requests.push( - std::unique_ptr(new ScreenScraperRequest(requests, results, path))); + requests.push(std::unique_ptr(new ScreenScraperRequest( + requests, results, + path + "&systemeid=" + HttpReq::urlEncode(std::to_string(*platform))))); } }