Merge pull request #630 from PhilaPhan80/api.thegamesdb.net-add-v1-to-url-path

Update TheGamesDB API URL to include "v1"
This commit is contained in:
Jools Wills 2020-02-01 02:34:53 +00:00 committed by GitHub
commit b9fddff3a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();