From 85dc2b59a2320c4a3767e36fbddec8a025205b13 Mon Sep 17 00:00:00 2001 From: PhilaPhan80 <53459459+PhilaPhan80@users.noreply.github.com> Date: Sun, 5 Jan 2020 01:52:03 -0500 Subject: [PATCH] Update TheGamesDB API URL to include "v1" within the path per note by Zer0xFF at https://forums.thegamesdb.net/viewtopic.php?f=5&t=1223 --- es-app/src/scrapers/GamesDBJSONScraper.cpp | 2 +- es-app/src/scrapers/GamesDBJSONScraperResources.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/es-app/src/scrapers/GamesDBJSONScraper.cpp b/es-app/src/scrapers/GamesDBJSONScraper.cpp index ad4ddbf60..bf591a9ab 100644 --- a/es-app/src/scrapers/GamesDBJSONScraper.cpp +++ b/es-app/src/scrapers/GamesDBJSONScraper.cpp @@ -103,7 +103,7 @@ void thegamesdb_generate_json_scraper_requests(const ScraperSearchParams& params std::queue>& requests, std::vector& results) { resources.prepare(); - std::string path = "https://api.thegamesdb.net"; + std::string path = "https://api.thegamesdb.net/v1"; bool usingGameID = false; const std::string apiKey = std::string("apikey=") + resources.getApiKey(); std::string cleanName = params.nameOverride; diff --git a/es-app/src/scrapers/GamesDBJSONScraperResources.cpp b/es-app/src/scrapers/GamesDBJSONScraperResources.cpp index 7d59bef46..517fd3369 100644 --- a/es-app/src/scrapers/GamesDBJSONScraperResources.cpp +++ b/es-app/src/scrapers/GamesDBJSONScraperResources.cpp @@ -153,7 +153,7 @@ bool TheGamesDBJSONRequestResources::saveResource(HttpReq* req, std::unordered_m std::unique_ptr TheGamesDBJSONRequestResources::fetchResource(const std::string& endpoint) { - std::string path = "https://api.thegamesdb.net"; + std::string path = "https://api.thegamesdb.net/v1"; path += endpoint; path += "?apikey=" + getApiKey();