Files
newznab-tmux/misc/update/nix/multiprocessing/fixrelnames.php
T
2016-05-13 09:26:12 +02:00

22 lines
861 B
PHP

<?php
if (!isset($argv[1]) || !in_array($argv[1], ['nfo', 'filename', 'srr', 'md5', 'par2', 'miscsorter', 'predbft'])) {
exit(
'First argument (mandatory):' . PHP_EOL .
'nfo => Attempt to fix release name using the nfo.' . PHP_EOL .
'filename => Attempt to fix release name using the filenames.' . PHP_EOL .
'srr => Attempt to fix release name using the srr file.' . PHP_EOL .
'md5 => Attempt to fix release name using the MD5.' . PHP_EOL .
'par2 => Attempt to fix release name using the par2.' . PHP_EOL .
'miscsorter => Attempt to fix release name using magic.' . PHP_EOL .
'predbft => Attempt to fix release name using Predb full text matching.' . PHP_EOL . PHP_EOL
);
}
declare(ticks=1);
require('.do_not_run/require.php');
use newznab\libraries\Forking;
(new Forking())->processWorkType('fixRelNames_' . $argv[1], [0 => $argv[1]]);