mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
21 lines
783 B
PHP
21 lines
783 B
PHP
<?php
|
|
if (!isset($argv[1]) || !in_array($argv[1], ['nfo', 'filename', '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 .
|
|
'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]]);
|