mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-29 19:55:37 +00:00
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:
parent
714797e778
commit
85dc2b59a2
|
@ -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