Fixed an issue where ScreenScraper API calls were slightly malformed for systems where multiple platforms were defined

This commit is contained in:
Leon Styhre 2023-08-04 18:08:59 +02:00
parent fc24b21311
commit 1da9a8cf00

View file

@ -248,9 +248,9 @@ void screenscraper_generate_scraper_requests(const ScraperSearchParams& params,
p_ids.erase(last, p_ids.end()); p_ids.erase(last, p_ids.end());
for (auto platform = p_ids.cbegin(); platform != p_ids.cend(); ++platform) { 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<ScraperRequest>(new ScreenScraperRequest(
requests.push( requests, results,
std::unique_ptr<ScraperRequest>(new ScreenScraperRequest(requests, results, path))); path + "&systemeid=" + HttpReq::urlEncode(std::to_string(*platform)))));
} }
} }