Minor improvements (#1611)

* Minor improvements

* Update displaying_torrent.php

* Update TorrServerAPI.php

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-08-24 22:09:27 +07:00 committed by GitHub
commit 7a67fefd4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 5 deletions

View file

@ -224,9 +224,9 @@ if ($tor_reged && $tor_info) {
]);
// TorrServer integration
if ($bb_cfg['torr_server']['enabled']) {
if ($bb_cfg['torr_server']['enabled'] && $m3u_file = (new \TorrentPier\TorrServerAPI())->getM3UPath($attach_id)) {
$template->assign_block_vars('postrow.attach.tor_reged.tor_server', [
'TORR_SERVER_M3U_LINK' => (new \TorrentPier\TorrServerAPI())->getM3UPath($attach_id),
'TORR_SERVER_M3U_LINK' => $m3u_file,
'TORR_SERVER_M3U_ICON' => $images['icon_tor_m3u_icon'],
]);
}