mirror of
https://github.com/YGGverse/parser-php.git
synced 2026-03-31 17:25:28 +00:00
fix 0x1220 multihash prefix for v2 btmh part
This commit is contained in:
parent
c32a3b5f7d
commit
81f019be7a
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ class Magnet {
|
|||
|
||||
public static function isXTv2(string $xt) : bool
|
||||
{
|
||||
return ('urn' == parse_url($xt, PHP_URL_SCHEME) && false !== strpos($xt, ':btmh:'));
|
||||
return ('urn' == parse_url($xt, PHP_URL_SCHEME) && false !== strpos($xt, ':btmh:1220'));
|
||||
}
|
||||
|
||||
public static function filterInfoHash(string $value) : string
|
||||
|
|
@ -26,7 +26,7 @@ class Magnet {
|
|||
[
|
||||
'urn:',
|
||||
'btih:',
|
||||
'btmh:',
|
||||
'btmh:1220',
|
||||
],
|
||||
false,
|
||||
$value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue