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

This commit is contained in:
PhilaPhan80 2020-01-05 01:52:03 -05:00
parent 714797e778
commit 85dc2b59a2
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ void thegamesdb_generate_json_scraper_requests(const ScraperSearchParams& params
std::queue<std::unique_ptr<ScraperRequest>>& requests, std::vector<ScraperSearchResult>& 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;

View file

@ -153,7 +153,7 @@ bool TheGamesDBJSONRequestResources::saveResource(HttpReq* req, std::unordered_m
std::unique_ptr<HttpReq> 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();