mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
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:
commit
b9fddff3a3
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue