Regression from 1c0f8b4289. Closes #15969. PR #15988.
1c0f8b4289
@ -503,6 +503,8 @@ void SyncController::maindataAction()
{
const BitTorrent::CategoryOptions categoryOptions = session->categoryOptions(categoryName);
QJsonObject category = categoryOptions.toJSON();
// adjust it to be compatible with exisitng WebAPI
category[QLatin1String("savePath")] = category.take(QLatin1String("save_path"));
category.insert(QLatin1String("name"), categoryName);
categories[categoryName] = category.toVariantMap();
}
@ -1280,6 +1280,8 @@ void TorrentsController::categoriesAction()
categories[categoryName] = category;
@ -43,7 +43,7 @@
#include "base/utils/net.h"
#include "base/utils/version.h"
inline const Utils::Version<int, 3, 2> API_VERSION {2, 8, 4};
inline const Utils::Version<int, 3, 2> API_VERSION {2, 8, 5};
class APIController;
class WebApplication;