diff --git a/src/Entity/Torrent.php b/src/Entity/Torrent.php index eb9c601..e4d8e2b 100644 --- a/src/Entity/Torrent.php +++ b/src/Entity/Torrent.php @@ -80,20 +80,8 @@ class Torrent return $this->id; } - /** - * Returns torrent info hash as HEX string - */ + /** Returns torrent info hash as HEX string */ public function getInfoHash(): string - { - return $this->getInfoHashAsHex(); - } - - /** - * @deprecated Use getInfoHash() instead - * - * Returns torrent info hash as HEX string - */ - public function getInfoHashAsHex(): string { if (null === $this->infoHashHexCache) { $this->infoHashHexCache = bin2hex(stream_get_contents($this->infoHash)); diff --git a/templates/torrent_list.html.twig b/templates/torrent_list.html.twig index d0b4326..6973ec5 100644 --- a/templates/torrent_list.html.twig +++ b/templates/torrent_list.html.twig @@ -16,7 +16,7 @@ {# @var torrent \App\Entity\Torrent #} {% for torrent in torrents %} - 🔗 + 🔗 {{ torrent.name }} {{ torrent.totalSize | readable_size }} {{ torrent.discoveredOn | date('Y-m-d H:i:s')}} diff --git a/templates/torrent_show.html.twig b/templates/torrent_show.html.twig index d26b248..1d8152d 100644 --- a/templates/torrent_show.html.twig +++ b/templates/torrent_show.html.twig @@ -10,7 +10,7 @@ Hash - {{ torrent.infoHashAsHex }} + {{ torrent.infoHash }}