This commit is contained in:
Roman Kelesidis 2025-01-06 19:49:39 +07:00
commit 4b41a0be55
2 changed files with 11 additions and 2 deletions

View file

@ -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'];

View file

@ -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'],