Implement Reannounce In column

PR #19571.
This commit is contained in:
Hanabishi
2023-09-09 10:12:43 +05:00
committed by GitHub
parent 2deb7eb3d9
commit c394868f87
7 changed files with 27 additions and 1 deletions

View File

@@ -159,6 +159,7 @@ QVariantMap serialize(const BitTorrent::Torrent &torrent)
{KEY_TORRENT_SEEDING_TIME, torrent.finishedTime()},
{KEY_TORRENT_LAST_ACTIVITY_TIME, getLastActivityTime()},
{KEY_TORRENT_AVAILABILITY, torrent.distributedCopies()},
{KEY_TORRENT_REANNOUNCE, torrent.nextAnnounce()},
{KEY_TORRENT_TOTAL_SIZE, torrent.totalSize()}
};

View File

@@ -90,5 +90,6 @@ inline const QString KEY_TORRENT_AUTO_TORRENT_MANAGEMENT = u"auto_tmm"_s;
inline const QString KEY_TORRENT_TIME_ACTIVE = u"time_active"_s;
inline const QString KEY_TORRENT_SEEDING_TIME = u"seeding_time"_s;
inline const QString KEY_TORRENT_AVAILABILITY = u"availability"_s;
inline const QString KEY_TORRENT_REANNOUNCE = u"reannounce"_s;
QVariantMap serialize(const BitTorrent::Torrent &torrent);