mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
add root_path to torrent/info api output (#21066)
WebAPI: Add root_path to torrent/info result PR #21066. Closes #21057.
This commit is contained in:
@@ -135,6 +135,7 @@ QVariantMap serialize(const BitTorrent::Torrent &torrent)
|
||||
{KEY_TORRENT_SAVE_PATH, torrent.savePath().toString()},
|
||||
{KEY_TORRENT_DOWNLOAD_PATH, torrent.downloadPath().toString()},
|
||||
{KEY_TORRENT_CONTENT_PATH, torrent.contentPath().toString()},
|
||||
{KEY_TORRENT_ROOT_PATH, torrent.rootPath().toString()},
|
||||
{KEY_TORRENT_ADDED_ON, Utils::DateTime::toSecsSinceEpoch(torrent.addedTime())},
|
||||
{KEY_TORRENT_COMPLETION_ON, Utils::DateTime::toSecsSinceEpoch(torrent.completedTime())},
|
||||
{KEY_TORRENT_TRACKER, torrent.currentTracker()},
|
||||
|
||||
@@ -66,6 +66,7 @@ inline const QString KEY_TORRENT_FORCE_START = u"force_start"_s;
|
||||
inline const QString KEY_TORRENT_SAVE_PATH = u"save_path"_s;
|
||||
inline const QString KEY_TORRENT_DOWNLOAD_PATH = u"download_path"_s;
|
||||
inline const QString KEY_TORRENT_CONTENT_PATH = u"content_path"_s;
|
||||
inline const QString KEY_TORRENT_ROOT_PATH = u"root_path"_s;
|
||||
inline const QString KEY_TORRENT_ADDED_ON = u"added_on"_s;
|
||||
inline const QString KEY_TORRENT_COMPLETION_ON = u"completion_on"_s;
|
||||
inline const QString KEY_TORRENT_TRACKER = u"tracker"_s;
|
||||
|
||||
Reference in New Issue
Block a user