diff --git a/CHANGELOG.md b/CHANGELOG.md index 81e0612d..5905a5f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ **Merged pull requests:** - Release v2.1.5-2023.09 🎉 -- Minor improvements [\#235](https://github.com/torrentpier/torrentpier-lts/pull/235), [\#236](https://github.com/torrentpier/torrentpier-lts/pull/236), [\#237](https://github.com/torrentpier/torrentpier-lts/pull/237), [\#238](https://github.com/torrentpier/torrentpier-lts/pull/238), [\#239](https://github.com/torrentpier/torrentpier-lts/pull/239), [\#240](https://github.com/torrentpier/torrentpier-lts/pull/240) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#235](https://github.com/torrentpier/torrentpier-lts/pull/235), [\#236](https://github.com/torrentpier/torrentpier-lts/pull/236), [\#237](https://github.com/torrentpier/torrentpier-lts/pull/237), [\#238](https://github.com/torrentpier/torrentpier-lts/pull/238), [\#239](https://github.com/torrentpier/torrentpier-lts/pull/239), [\#240](https://github.com/torrentpier/torrentpier-lts/pull/240), [\#241](https://github.com/torrentpier/torrentpier-lts/pull/241) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.1.5-2023.08](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08) (2023-09-04) [Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.07...v2.1.5-2023.08) diff --git a/bt/announce.php b/bt/announce.php index 96e9665b..6c3d66c0 100644 --- a/bt/announce.php +++ b/bt/announce.php @@ -487,8 +487,8 @@ if (!$output) LIMIT 1 "); - $seeders = isset($row['seeders']) ? $row['seeders'] : 0; - $leechers = isset($row['leechers']) ? $row['leechers'] : 0; + $seeders = isset($row['seeders']) ? $row['seeders'] : ($seeder ? 1 : 0); + $leechers = isset($row['leechers']) ? $row['leechers'] : (!$seeder ? 1 : 0); } $output = array( diff --git a/library/config.php b/library/config.php index cb98b9d9..83e45189 100644 --- a/library/config.php +++ b/library/config.php @@ -89,7 +89,7 @@ $bb_cfg['script_path'] = '/'; $bb_cfg['gzip_compress'] = true; // compress output // Tracker -$bb_cfg['announce_interval'] = 2400; // Announce interval (default: 1800) +$bb_cfg['announce_interval'] = 1800; // Announce interval (default: 1800) $bb_cfg['passkey_key'] = 'uk'; // Passkey key name in GET request $bb_cfg['ignore_reported_ip'] = false; // Ignore IP reported by client $bb_cfg['verify_reported_ip'] = true; // Verify IP reported by client against $_SERVER['HTTP_X_FORWARDED_FOR']