mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Updated
This commit is contained in:
parent
1729a247c5
commit
4b41a0be55
2 changed files with 11 additions and 2 deletions
|
@ -710,6 +710,11 @@ if ($allowed_forums) {
|
|||
|
||||
$seeds = $tor['seeders'];
|
||||
$leechs = $tor['leechers'];
|
||||
if ($bb_cfg['tracker']['multitracker']['enabled']) {
|
||||
$seeds += $tor['ext_seeders'];
|
||||
$leechs += $tor['ext_leechers'];
|
||||
}
|
||||
|
||||
$s_last = $tor['seeder_last_seen'];
|
||||
$att_id = $tor['attach_id'];
|
||||
$size = $tor['size'];
|
||||
|
|
|
@ -470,9 +470,13 @@ foreach ($topic_rowset as $topic) {
|
|||
if (isset($topic['tor_size'])) {
|
||||
$tor_magnet = create_magnet($topic['info_hash'], $topic['info_hash_v2'], $topic['auth_key'], html_ent_decode($topic['topic_title']));
|
||||
|
||||
if ($bb_cfg['tracker']['multitracker']['enabled']) {
|
||||
$topic['seeders'] += (int)$topic['ext_seeders'];
|
||||
$topic['leechers'] += (int)$topic['ext_leechers'];
|
||||
}
|
||||
$template->assign_block_vars('t.tor', [
|
||||
'SEEDERS' => (int)$topic['seeders'] + (int)$topic['ext_seeders'],
|
||||
'LEECHERS' => (int)$topic['leechers'] + (int)$topic['ext_leechers'],
|
||||
'SEEDERS' => (int)$topic['seeders'],
|
||||
'LEECHERS' => (int)$topic['leechers'],
|
||||
'TOR_SIZE' => humn_size($topic['tor_size'], 1),
|
||||
'COMPL_CNT' => declension((int)$topic['complete_count'], 'times'),
|
||||
'DOWNLOADED' => (int)$topic['download_count'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue