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
ede3ab0959
commit
cc5144fb31
1 changed files with 2 additions and 1 deletions
|
@ -397,7 +397,6 @@ class Torrent
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getting external peers
|
// Getting external peers
|
||||||
$external_seeders = $external_leechers = 0;
|
|
||||||
if ($bb_cfg['tracker']['multitracker']['enabled']) {
|
if ($bb_cfg['tracker']['multitracker']['enabled']) {
|
||||||
$tor['announce-list'] = array_merge(array_column($tor['announce-list'], 0), [$tor['announce']]);
|
$tor['announce-list'] = array_merge(array_column($tor['announce-list'], 0), [$tor['announce']]);
|
||||||
$announcers = array_unique($tor['announce-list'], SORT_REGULAR);
|
$announcers = array_unique($tor['announce-list'], SORT_REGULAR);
|
||||||
|
@ -406,6 +405,8 @@ class Torrent
|
||||||
], $announcers);
|
], $announcers);
|
||||||
$external_seeders = $multiTracker->seeders;
|
$external_seeders = $multiTracker->seeders;
|
||||||
$external_leechers = $multiTracker->leechers;
|
$external_leechers = $multiTracker->leechers;
|
||||||
|
} else {
|
||||||
|
$external_seeders = $external_leechers = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($row = DB()->fetch_row("SELECT topic_id FROM " . BB_BT_TORRENTS . " $info_hash_where LIMIT 1")) {
|
if ($row = DB()->fetch_row("SELECT topic_id FROM " . BB_BT_TORRENTS . " $info_hash_where LIMIT 1")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue