doConnect($compressedHeaders, true) : $nntp->doConnect()) !== true) { $output->writeln('Unable to connect to usenet.'); return; } } switch ($argv[1]) { case '3': $nameFixer->fixNamesWithNfo(1, $update, $other, $setStatus, $show); break; case '4': $nameFixer->fixNamesWithNfo(2, $update, $other, $setStatus, $show); break; case '5': $nameFixer->fixNamesWithFiles(1, $update, $other, $setStatus, $show); break; case '6': $nameFixer->fixNamesWithFiles(2, $update, $other, $setStatus, $show); break; case '7': $nameFixer->fixNamesWithPar2(1, $update, $other, $setStatus, $show, $nntp); break; case '8': $nameFixer->fixNamesWithPar2(2, $update, $other, $setStatus, $show, $nntp); break; case '9': $nameFixer->fixNamesWithMedia(1, $update, $other, $setStatus, $show); break; case '10': $nameFixer->fixNamesWithMedia(2, $update, $other, $setStatus, $show); break; case '11': $nameFixer->fixXXXNamesWithFiles(1, $update, $other, $setStatus, $show); break; case '12': $nameFixer->fixXXXNamesWithFiles(2, $update, $other, $setStatus, $show); break; case '13': $nameFixer->fixNamesWithSrr(1, $update, $other, $setStatus, $show); break; case '14': $nameFixer->fixNamesWithSrr(2, $update, $other, $setStatus, $show); break; case '15': $nameFixer->fixNamesWithParHash(1, $update, $other, $setStatus, $show); break; case '16': $nameFixer->fixNamesWithParHash(2, $update, $other, $setStatus, $show); break; case '17': $nameFixer->fixNamesWithMediaMovieName(1, $update, $other, $setStatus, $show); break; case '18': $nameFixer->fixNamesWithMediaMovieName(2, $update, $other, $setStatus, $show); break; case '19': $nameFixer->fixNamesWithCrc(1, $update, $other, $setStatus, $show); break; case '20': $nameFixer->fixNamesWithCrc(2, $update, $other, $setStatus, $show); break; default: $output->writeln(''.PHP_EOL.'ERROR: Wrong argument, type php '.$argv[0].' to see a list of valid arguments.'); exit(1); } } else { $output->writeln([ '', 'You must supply 4 arguments.', 'The 2nd argument, false, will display the results, but not change the name, type true to have the names changed.', 'The 3rd argument, other, will only do against other categories, to do against all categories use all, or predb_id to process all not matched to predb.', 'The 4th argument, yes, will set the release as checked, so the next time you run it will not be processed, to not set as checked type no.', 'The 5th argument (optional), show, will display the release changes or only show a counter.', '', 'php '.$argv[0].' 3 false other no ...: Fix release names using NFO in the past 6 hours.', 'php '.$argv[0].' 4 false other no ...: Fix release names using NFO.', 'php '.$argv[0].' 5 false other no ...: Fix release names in misc categories using File Name in the past 6 hours.', 'php '.$argv[0].' 6 false other no ...: Fix release names in misc categories using File Name.', 'php '.$argv[0].' 7 false other no ...: Fix release names in misc categories using Par2 Files in the past 6 hours.', 'php '.$argv[0].' 8 false other no ...: Fix release names in misc categories using Par2 Files.', 'php '.$argv[0].' 9 false other no ...: Fix release names in misc categories using UID in the past 6 hours.', 'php '.$argv[0].' 10 false other no ...: Fix release names in misc categories using UID.', 'php '.$argv[0].' 11 false other no ...: Fix SDPORN XXX release names in misc categories using specific File Name in the past 6 hours.', 'php '.$argv[0].' 12 false other no ...: Fix SDPORN XXX release names in misc categories using specific File Name.', 'php '.$argv[0].' 13 false other no ...: Fix release names in misc categories using SRR files in the past 6 hours.', 'php '.$argv[0].' 14 false other no ...: Fix release names in misc categories using SRR files.', 'php '.$argv[0].' 15 false other no ...: Fix release names in misc categories using PAR2 hash_16K block in the past 6 hours.', 'php '.$argv[0].' 16 false other no ...: Fix release names in misc categories using PAR2 hash_16K block.', 'php '.$argv[0].' 17 false other no ...: Fix release names in misc categories using Mediainfo in the past 6 hours.', 'php '.$argv[0].' 18 false other no ...: Fix release names in misc categories using Mediainfo.', 'php '.$argv[0].' 19 false other no ...: Fix release names in misc categories using CRC32 in the past 6 hours.', 'php '.$argv[0].' 20 false other no ...: Fix release names in misc categories using CRC32.', '', ]); exit(1); }