@@ 1357-1369 (lines=13) @@ | ||
1354 | * @param $namestatus |
|
1355 | * @param $show |
|
1356 | */ |
|
1357 | public function appCheck($release, $echo, $type, $namestatus, $show) |
|
1358 | { |
|
1359 | $result = []; |
|
1360 | ||
1361 | if ($this->done === false && $this->relid !== $release["releases_id"]) { |
|
1362 | ||
1363 | if (preg_match('/\w[-\w.\',;& ]+(\d{1,10}|Linux|UNIX)[._ -](RPM)?[._ -]?(X64)?[._ -]?(Incl)[._ -](Keygen)[-\w.\',;& ]+\w/i', $release["textstring"], $result)) { |
|
1364 | $this->updateRelease($release, $result["0"], $method = "appCheck: Apps 1", $echo, $type, $namestatus, $show); |
|
1365 | } else if (preg_match('/\w[-\w.\',;& ]+\d{1,8}[._ -](winall-freeware)[-\w.\',;& ]+\w/i', $release["textstring"], $result)) { |
|
1366 | $this->updateRelease($release, $result["0"], $method = "appCheck: Apps 2", $echo, $type, $namestatus, $show); |
|
1367 | } |
|
1368 | } |
|
1369 | } |
|
1370 | ||
1371 | /* |
|
1372 | * Just for NFOS. |
|
@@ 1384-1396 (lines=13) @@ | ||
1381 | * @param $namestatus |
|
1382 | * @param $show |
|
1383 | */ |
|
1384 | public function nfoCheckTV($release, $echo, $type, $namestatus, $show) |
|
1385 | { |
|
1386 | $result = []; |
|
1387 | ||
1388 | if ($this->done === false && $this->relid !== $release['releases_id']) { |
|
1389 | ||
1390 | if (preg_match('/:\s*.*[\\\\\/]([A-Z0-9].+?S\d+[.-_ ]?[ED]\d+.+?)\.\w{2,}\s+/i', $release["textstring"], $result)) { |
|
1391 | $this->updateRelease($release, $result["1"], $method = "nfoCheck: Generic TV 1", $echo, $type, $namestatus, $show); |
|
1392 | } else if (preg_match('/(?:(\:\s{1,}))(.+?S\d{1,3}[.-_ ]?[ED]\d{1,3}.+?)(\s{2,}|\r|\n)/i', $release["textstring"], $result)) { |
|
1393 | $this->updateRelease($release, $result["2"], $method = "nfoCheck: Generic TV 2", $echo, $type, $namestatus, $show); |
|
1394 | } |
|
1395 | } |
|
1396 | } |
|
1397 | ||
1398 | /** |
|
1399 | * Movies. |