announce.php, find:
$torrentfields = "id, name, info_hash, category, banned, freeleech, seeders + leechers AS numpeers, UNIX_TIMESTAMP(added) AS ts"; //torrent details to get
replace with:
$torrentfields = "id, name, info_hash, seeders, leechers, times_completed, category, banned, freeleech, seeders + leechers AS numpeers, UNIX_TIMESTAMP(added) AS ts"; //torrent details to get
find:
$resp = "d" . benc_str("interval") . "i" . $site_config["announce_interval"] . "e" . benc_str("peers") . "l";
replace with:
$resp = "d8:completei$torrent[seeders]e10:downloadedi$torrent[times_completed]e10:incompletei$torrent[leechers]e";
$resp .= benc_str("interval") . "i" . $site_config["announce_interval"] . "e" . benc_str("peers") . "l";