mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 18:58:56 +00:00
Changes in prehash and predb column names ( the ones that are changed by tmux)
This commit is contained in:
@@ -13,9 +13,9 @@ require_once ("ColorCLI.php");
|
||||
$c = new ColorCLI();
|
||||
if (!isset($argv[1]) || ( $argv[1] != "all" && $argv[1] != "full" && !is_numeric($argv[1])))
|
||||
exit($c->error("\nThis script tries to match an MD5 of the releases.name or releases.searchname to predb.md5.\n"
|
||||
."php hash_decrypt.php 1000 ...: to limit to 1000 sorted by newest postdate.\n"
|
||||
."php hash_decrypt.php full ...: to run on full database.\n"
|
||||
."php hash_decrypt.php all ...: to run on all hashed releases(including previously renamed).\n"));
|
||||
."php md5_decrypt.php 1000 ...: to limit to 1000 sorted by newest postdate.\n"
|
||||
."php md5_decrypt.php full ...: to run on full database.\n"
|
||||
."php md5_decrypt.php all ...: to run on all hashed releases(including previously renamed).\n"));
|
||||
|
||||
echo $c->header ("\nHash Decryption Started at ".date("H:i:s")."\nMatching prehash MD5 to md5(releases.name or releases.searchname)");
|
||||
preName($argv);
|
||||
@@ -49,7 +49,7 @@ function preName($argv)
|
||||
$success = false;
|
||||
if (preg_match('/([0-9a-fA-F]{32})/', $row['searchname'], $match) || preg_match('/([0-9a-fA-F]{32})/', $row['name'], $match))
|
||||
{
|
||||
$pre = $db->queryOneRow(sprintf("SELECT title, source FROM prehash WHERE hash = %s", $db->escapeString($match[1])));
|
||||
$pre = $db->queryOneRow(sprintf("SELECT title, source FROM prehash WHERE md5 = %s", $db->escapeString($match[1])));
|
||||
if ($pre !== false)
|
||||
{
|
||||
$determinedcat = $category->determineCategory($row["groupID"], $pre['title']);
|
||||
|
||||
Reference in New Issue
Block a user