mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Include trackers in /sync/maindata API endpoint
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include "base/bittorrent/infohash.h"
|
||||
#include "base/bittorrent/torrenthandle.h"
|
||||
#include "base/bittorrent/trackerentry.h"
|
||||
#include "base/utils/fs.h"
|
||||
|
||||
namespace
|
||||
@@ -110,6 +111,7 @@ QVariantMap serialize(const BitTorrent::TorrentHandle &torrent)
|
||||
{KEY_TORRENT_ADDED_ON, torrent.addedTime().toSecsSinceEpoch()},
|
||||
{KEY_TORRENT_COMPLETION_ON, torrent.completedTime().toSecsSinceEpoch()},
|
||||
{KEY_TORRENT_TRACKER, torrent.currentTracker()},
|
||||
{KEY_TORRENT_TRACKERS_COUNT, torrent.trackers().size()},
|
||||
{KEY_TORRENT_DL_LIMIT, torrent.downloadLimit()},
|
||||
{KEY_TORRENT_UP_LIMIT, torrent.uploadLimit()},
|
||||
{KEY_TORRENT_AMOUNT_DOWNLOADED, torrent.totalDownload()},
|
||||
|
||||
@@ -61,6 +61,7 @@ const char KEY_TORRENT_SAVE_PATH[] = "save_path";
|
||||
const char KEY_TORRENT_ADDED_ON[] = "added_on";
|
||||
const char KEY_TORRENT_COMPLETION_ON[] = "completion_on";
|
||||
const char KEY_TORRENT_TRACKER[] = "tracker";
|
||||
const char KEY_TORRENT_TRACKERS_COUNT[] = "trackers_count";
|
||||
const char KEY_TORRENT_DL_LIMIT[] = "dl_limit";
|
||||
const char KEY_TORRENT_UP_LIMIT[] = "up_limit";
|
||||
const char KEY_TORRENT_AMOUNT_DOWNLOADED[] = "downloaded";
|
||||
|
||||
Reference in New Issue
Block a user