Add release renaming based on included srr filename, fix one long standing bug in NameFixer

This commit is contained in:
DariusIII
2015-12-29 15:39:16 +01:00
parent 928059e122
commit d8e9ede2d1
12 changed files with 174 additions and 11 deletions
+9 -1
View File
@@ -68,6 +68,12 @@ if (isset($argv[1]) && isset($argv[2]) && isset($argv[3]) && isset($argv[4])) {
case 8:
$namefixer->fixNamesWithPar2(2, $update, $other, $setStatus, $show, $nntp);
break;
case 9:
$namefixer->fixNamesWithSrr(1, $update, $other, $setStatus, $show);
break;
case 10:
$namefixer->fixNamesWithSrr(2, $update, $other, $setStatus, $show);
break;
default :
exit($pdo->log->error("\nERROR: Wrong argument, type php $argv[0] to see a list of valid arguments." . $n));
break;
@@ -85,5 +91,7 @@ if (isset($argv[1]) && isset($argv[2]) && isset($argv[3]) && isset($argv[4])) {
. "php $argv[0] 5 false other no ...: Fix release names in misc categories using File Name in the past 6 hours.\n"
. "php $argv[0] 6 false other no ...: Fix release names in misc categories using File Name.\n"
. "php $argv[0] 7 false other no ...: Fix release names in misc categories using Par2 Files in the past 6 hours.\n"
. "php $argv[0] 8 false other no ...: Fix release names in misc categories using Par2 Files.\n"));
. "php $argv[0] 8 false other no ...: Fix release names in misc categories using Par2 Files.\n"
. "php $argv[0] 9 false other no ...: Fix release names in misc categories using srr file in the past 6 hours.\n"
. "php $argv[0] 10 false other no ...: Fix release names in misc categories using srr file.\n"));
}