mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#1611)
* Minor improvements * Update displaying_torrent.php * Update TorrServerAPI.php * Update CHANGELOG.md
This commit is contained in:
parent
ee8d9d5cd2
commit
7a67fefd4d
3 changed files with 9 additions and 5 deletions
|
@ -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'],
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue