From 2acfc06ca6c76437ce17f22a067d9bab889e3372 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 16 Oct 2023 18:00:12 +0300 Subject: [PATCH] add missed bittorrent protocol info on search page --- src/Controller/TorrentController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Controller/TorrentController.php b/src/Controller/TorrentController.php index a328cbc..1b8e77a 100644 --- a/src/Controller/TorrentController.php +++ b/src/Controller/TorrentController.php @@ -299,6 +299,11 @@ class TorrentController extends AbstractController [ 'name' => $file->getName(), 'size' => $file->getSize(), + 'hash' => + [ + 'v1' => $file->getInfoHashV1(false), + 'v2' => $file->getInfoHashV2(false) + ], ], 'scrape' => [