Improved TorrServer integration (#1624)

* Improved TorrServer integration

* Updated

* Update showm3u.php

* Update showm3u.tpl

* Updated

* Update showm3u.php

* Updated

* Updated

* Updated

* Update showm3u.php

* Update showm3u.tpl

* Update main.php

* Updated

* Update show_m3u.php

* Update

* Update show_m3u.tpl

* Update show_m3u.tpl

* Updated

* Updated

* Update displaying_torrent.php

* Update show_m3u.php

* Updated

* Updated

* Update show_m3u.tpl

* Updated

* Update show_m3u.php

* Updated

* Update show_m3u.php

* Update show_m3u.php

* Update show_m3u.php

* Updated

* Updated

* Update show_m3u.tpl

* Updated

* Update show_m3u.tpl

* Update main.php

* Updated

* Updated

* Updated

* Update playback_m3u.php

* Update playback_m3u.tpl

* Update playback_m3u.tpl

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-08-29 21:51:30 +07:00 committed by GitHub
commit c3d6d62a82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 214 additions and 22 deletions

View file

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