mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
17 lines
517 B
PHP
17 lines
517 B
PHP
<?php
|
|
if (!isset($argv[1]) || !in_array($argv[1], ['standard', 'predbft'])) {
|
|
exit(
|
|
'First argument (mandatory):' . PHP_EOL .
|
|
'standard => Attempt to fix release name using standard methods.' . PHP_EOL .
|
|
'predbft => Attempt to fix release name using Predb full text matching.' . PHP_EOL . PHP_EOL
|
|
);
|
|
}
|
|
|
|
require_once dirname(__DIR__, 4) . DIRECTORY_SEPARATOR . 'bootstrap.php';
|
|
|
|
use nntmux\libraries\Forking;
|
|
|
|
declare(ticks = 1);
|
|
|
|
(new Forking())->processWorkType('fixRelNames_' . $argv[1], [0 => $argv[1]]);
|