From 9fe2f6126dc7b9396d188b57ccb097f0035f57b7 Mon Sep 17 00:00:00 2001 From: Silarn Date: Mon, 20 Aug 2018 18:34:31 -0500 Subject: Initial Nexus API changes: - Switch to SSO with WebSocket - Update endpoints (all but version checking) --- src/downloadmanager.cpp | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'src/downloadmanager.cpp') diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index ab8da7b8..c927695e 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -1536,10 +1536,10 @@ void DownloadManager::nxmFileInfoAvailable(QString gameName, int modID, int file if (!info->version.isValid()) { info->version = info->newestVersion; } - info->fileName = result["uri"].toString(); + info->fileName = result["file_name"].toString(); info->fileCategory = result["category_id"].toInt(); - info->fileTime = matchDate(result["date"].toString()); - info->description = BBCode::convertToHTML(result["description"].toString()); + info->fileTime = matchDate(result["uploaded_timestamp"].toString()); + info->description = BBCode::convertToHTML(result["changelog_html"].toString()); info->repository = "Nexus"; info->gameName = gameName; @@ -1554,23 +1554,12 @@ static int evaluateFileInfoMap(const QVariantMap &map, const std::mapsecond * 20; } - if (map["IsPremium"].toBool()) result += 5; - return result; } -- cgit v1.3.1