mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
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:
parent
658bfe24b5
commit
c3d6d62a82
10 changed files with 214 additions and 22 deletions
|
@ -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'],
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue