mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Used new Bencoder library 🔩 (#791)
Co-authored-by: Constantine Kovalensky <45331093+kovalensky@users.noreply.github.com>
This commit is contained in:
parent
356218dc67
commit
2369e4cc0c
8 changed files with 154 additions and 75 deletions
|
@ -30,7 +30,7 @@ $info_hash = $_GET['info_hash'];
|
|||
|
||||
function msg_die($msg)
|
||||
{
|
||||
$output = \Rych\Bencode\Bencode::encode([
|
||||
$output = \SandFox\Bencode\Bencode::encode([
|
||||
'min interval' => (int)1800,
|
||||
'failure reason' => (string)$msg,
|
||||
'warning message' => (string)$msg,
|
||||
|
@ -57,6 +57,6 @@ $output['files'][$info_hash] = [
|
|||
'incomplete' => (int)$row['leechers'],
|
||||
];
|
||||
|
||||
echo \Rych\Bencode\Bencode::encode($output);
|
||||
echo \SandFox\Bencode\Bencode::encode($output);
|
||||
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue