WebAPI: Provide "isPrivate" flag via "torrents/info" endpoint

PR #20686.
This commit is contained in:
ManiMatter
2024-05-02 12:04:03 +02:00
committed by GitHub
parent cd3982cf3c
commit 05416458db
2 changed files with 2 additions and 0 deletions

View File

@@ -163,6 +163,7 @@ QVariantMap serialize(const BitTorrent::Torrent &torrent)
{KEY_TORRENT_AVAILABILITY, torrent.distributedCopies()},
{KEY_TORRENT_REANNOUNCE, torrent.nextAnnounce()},
{KEY_TORRENT_COMMENT, torrent.comment()},
{KEY_TORRENT_ISPRIVATE, torrent.isPrivate()},
{KEY_TORRENT_TOTAL_SIZE, torrent.totalSize()}
};