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:
David Newhall
2024-07-14 22:44:26 -07:00
committed by GitHub
parent 7f4cb43a33
commit 3999b9a4f9
2 changed files with 2 additions and 0 deletions

View File

@@ -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()},