mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
webui: add save_path to /query/torrents
Signed-off-by: Casey Bodley <cbodley@gmail.com>
This commit is contained in:
parent
0b2b07e98e
commit
87b26a8dcc
@ -103,6 +103,7 @@ static const char KEY_TORRENT_FIRST_LAST_PIECE_PRIO[] = "f_l_piece_prio";
|
|||||||
static const char KEY_TORRENT_LABEL[] = "label";
|
static const char KEY_TORRENT_LABEL[] = "label";
|
||||||
static const char KEY_TORRENT_SUPER_SEEDING[] = "super_seeding";
|
static const char KEY_TORRENT_SUPER_SEEDING[] = "super_seeding";
|
||||||
static const char KEY_TORRENT_FORCE_START[] = "force_start";
|
static const char KEY_TORRENT_FORCE_START[] = "force_start";
|
||||||
|
static const char KEY_TORRENT_SAVE_PATH[] = "save_path";
|
||||||
|
|
||||||
// Tracker keys
|
// Tracker keys
|
||||||
static const char KEY_TRACKER_URL[] = "url";
|
static const char KEY_TRACKER_URL[] = "url";
|
||||||
@ -635,6 +636,7 @@ QVariantMap toMap(BitTorrent::TorrentHandle *const torrent)
|
|||||||
ret[KEY_TORRENT_LABEL] = torrent->label();
|
ret[KEY_TORRENT_LABEL] = torrent->label();
|
||||||
ret[KEY_TORRENT_SUPER_SEEDING] = torrent->superSeeding();
|
ret[KEY_TORRENT_SUPER_SEEDING] = torrent->superSeeding();
|
||||||
ret[KEY_TORRENT_FORCE_START] = torrent->isForced();
|
ret[KEY_TORRENT_FORCE_START] = torrent->isForced();
|
||||||
|
ret[KEY_TORRENT_SAVE_PATH] = Utils::Fs::toNativePath(torrent->rootPath());
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user