mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Small code re-format for scrape.php (#1198)
This commit is contained in:
parent
59777ba68a
commit
182216830b
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ if (!isset($info_hash)) {
|
|||
}
|
||||
|
||||
// Store info hash in hex format
|
||||
$info_hash_hex = mb_check_encoding($info_hash, 'UTF8') ? $info_hash : bin2hex($info_hash);
|
||||
$info_hash_hex = bin2hex($info_hash);
|
||||
|
||||
// Handle multiple hashes
|
||||
|
||||
|
@ -97,7 +97,7 @@ if (!empty($info_hash_count)) {
|
|||
}
|
||||
|
||||
if (empty($torrents)) {
|
||||
msg_die('Torrent not registered, info_hash = ' . $info_hash_hex);
|
||||
msg_die('Torrent not registered, info_hash = ' . (mb_check_encoding($info_hash, 'UTF8') ? $info_hash : $info_hash_hex));
|
||||
}
|
||||
|
||||
die(\Arokettu\Bencode\Bencode::encode($torrents));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue