Skip to content

Commit 1587ab4

Browse files
drrakostickz
authored andcommitted
Fix nnmclub regex pattern (#2864)
1 parent 5d5ad23 commit 1587ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/rutracker_check/trackers/nnmclub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ static public function download_torrent($url, $hash, $old_torrent)
77
if (preg_match('`^https?://(nnm-club|nnmclub)\.(ru|me|to|name|tv)/forum/viewtopic\.php\?p=(?P<id>\d+)$`', $url, $matches)) {
88
$client = ruTrackerChecker::makeClient("https://nnmclub.to/forum/viewtopic.php?p=".$matches["id"]);
99
if ($client->status != 200) return ruTrackerChecker::STE_CANT_REACH_TRACKER;
10-
if (preg_match('`btih:(?P<hash>[0-9A-Fa-f]{40})&tr`', $client->results, $matches)) {
10+
if (preg_match('`btih:(?P<hash>[0-9A-Fa-f]{40})`', $client->results, $matches)) {
1111
if (strtoupper($matches["hash"])==$hash) {
1212
return ruTrackerChecker::STE_UPTODATE;
1313
}

0 commit comments

Comments
 (0)