diff --git a/src/Controller/TorrentController.php b/src/Controller/TorrentController.php index db57bf2..38f7af8 100644 --- a/src/Controller/TorrentController.php +++ b/src/Controller/TorrentController.php @@ -57,6 +57,12 @@ class TorrentController extends AbstractController [ 'id' => $torrent->getId(), 'added' => $torrent->getAdded(), + 'scrape' => + [ + 'seeders' => (int) $torrent->getSeeders(), + 'peers' => (int) $torrent->getPeers(), + 'leechers' => (int) $torrent->getLeechers(), + ], 'locales' => $torrentService->findLastTorrentLocales($torrent->getId()), 'sensitive' => $torrentService->findLastTorrentSensitive($torrent->getId())->isValue(), 'download' => diff --git a/templates/default/torrent/info.html.twig b/templates/default/torrent/info.html.twig index 7ee1735..3d15181 100644 --- a/templates/default/torrent/info.html.twig +++ b/templates/default/torrent/info.html.twig @@ -177,6 +177,37 @@ {% endif %} +