Translations for config.php, raised scrape interval (#1100)

This commit is contained in:
Cønstantine Kovalensky 2023-11-15 13:14:02 +04:00 committed by GitHub
commit 7e4a76dc02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 104 additions and 98 deletions

View file

@ -58,6 +58,12 @@ if (!empty($info_hash_count)) {
}
$info_hashes_sql = implode('\', \'', $info_hashes);
/**
* Currently torrent clients send truncated v2 hashes (the design raises questions).
* https://github.com/bittorrent/bittorrent.org/issues/145#issuecomment-1720040343
*/
$info_hash_where = "tor.info_hash IN ('$info_hashes_sql') OR SUBSTRING(tor.info_hash_v2, 1, 20) IN ('$info_hashes_sql')";
$sql = "