diff --git a/src/curseforge/curseforgeapi.cpp b/src/curseforge/curseforgeapi.cpp index 5df32ea..9637121 100644 --- a/src/curseforge/curseforgeapi.cpp +++ b/src/curseforge/curseforgeapi.cpp @@ -137,11 +137,11 @@ Reply CurseforgeAPI::getDescription(int id) Reply CurseforgeAPI::getFileInfo(int id, int FileID) { - QUrl url = PREFIX + "/v1/mods/" + QString::number(id) + "/file/" + QString::number(FileID); + QUrl url = PREFIX + "/v1/mods/" + QString::number(id) + "/files/" + QString::number(FileID); QNetworkRequest request(url); MMLogger::network(this) << url; - request.setRawHeader("x-api-key",XAPIKEY); + request.setRawHeader("x-api-key", XAPIKEY); auto reply = accessManager_.get(request); return { reply, [=]{ //parse json