Use \Arokettu\Bencode\ instead \SandFox\Bencode\ (#932)

This commit is contained in:
Roman Kelesidis 2023-10-02 20:32:56 +07:00 committed by GitHub
commit c6fe4241e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 14 deletions

View file

@ -43,7 +43,7 @@ if (strlen($info_hash) == 32) {
}
if ($lp_scrape_info = CACHE('tr_cache')->get(SCRAPE_LIST_PREFIX . $info_hash_hex)) {
die(\SandFox\Bencode\Bencode::encode($lp_scrape_info));
die(\Arokettu\Bencode\Bencode::encode($lp_scrape_info));
}
$info_hash_sql = rtrim(DB()->escape($info_hash), ' ');
@ -73,6 +73,6 @@ $output['files'][$info_hash] = [
$peers_list_cached = CACHE('tr_cache')->set(SCRAPE_LIST_PREFIX . $info_hash_hex, $output, SCRAPE_LIST_EXPIRE);
echo \SandFox\Bencode\Bencode::encode($output);
echo \Arokettu\Bencode\Bencode::encode($output);
exit;