More echoing fixes

This commit is contained in:
DariusIII
2018-02-14 14:26:40 +01:00
parent 8a0fd85a2e
commit e33264963d
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -2,6 +2,7 @@
require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
use nntmux\ColorCLI;
use nntmux\db\DB;
use nntmux\NameFixer;
use nntmux\ConsoleTools;
@@ -18,8 +19,8 @@ if (! isset($argv[1]) || ($argv[1] != 'all' && $argv[1] != 'full' && ! is_numeri
));
}
echo $pdo->log->header("\nDecrypt Hashes (${argv[1]}) Started at ".date('g:i:s'));
echo $pdo->log->primary('Matching predb hashes to hash(releases.name or releases.searchname)');
ColorCLI::doEcho(ColorCLI::header("Decrypt Hashes (${argv[1]}) Started at ".date('g:i:s')), true);
ColorCLI::doEcho(ColorCLI::primary('Matching predb hashes to hash(releases.name or releases.searchname)'), true);
getPreName($argv);
+2 -2
View File
@@ -1141,8 +1141,8 @@ class NameFixer
$limit = 'LIMIT 1000000';
}
echo ColorCLI::header(PHP_EOL.'Match PreFiles '.$args[1].' Started at '.Carbon::now()->format('Y-m-d'));
echo ColorCLI::primary('Matching predb filename to cleaned release_files.name.'.PHP_EOL);
ColorCLI::doEcho(ColorCLI::header(PHP_EOL.'Match PreFiles '.$args[1].' Started at '.Carbon::now()->format('Y-m-d')), true);
ColorCLI::doEcho(ColorCLI::primary('Matching predb filename to cleaned release_files.name.'), true);
$counter = $counted = 0;
$timestart = time();