mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-25 07:35:48 -07:00
Update Torrent.php
This commit is contained in:
parent
cc5144fb31
commit
789b5866bb
1 changed files with 5 additions and 1 deletions
|
@ -398,8 +398,12 @@ class Torrent
|
|||
|
||||
// Getting external peers
|
||||
if ($bb_cfg['tracker']['multitracker']['enabled']) {
|
||||
$tor['announce-list'] = array_merge(array_column($tor['announce-list'], 0), [$tor['announce']]);
|
||||
// Getting / preparing announcers list
|
||||
array_unshift($tor['announce-list'], [$tor['announce']]);
|
||||
$tor['announce-list'] = array_column($tor['announce-list'], 0);
|
||||
$announcers = array_unique($tor['announce-list'], SORT_REGULAR);
|
||||
|
||||
// Getting external seeders / leechers
|
||||
$multiTracker = new MultiTracker([
|
||||
bin2hex($info_hash ?? $info_hash_v2)
|
||||
], $announcers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue