mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
Final changes to par2 checking
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
require(dirname(__FILE__)."/config.php");
|
||||
require(WWW_DIR.'/lib/postprocess.php');
|
||||
$version="0.1r832a";
|
||||
$version="0.1r833";
|
||||
|
||||
$db = new DB();
|
||||
$DIR = dirname (__FILE__);
|
||||
|
||||
+8
-2
@@ -189,7 +189,8 @@ class Namefixer
|
||||
//
|
||||
public function updateRelease($release, $name, $method, $echo, $type, $namestatus)
|
||||
{
|
||||
if ($this->relid !== $release["releaseID"])
|
||||
$echooutput = true;
|
||||
if ($this->relid !== $release["releaseID"])
|
||||
{
|
||||
$namecleaning = new nameCleaning();
|
||||
$newname = $namecleaning->fixerCleaner($name);
|
||||
@@ -333,11 +334,16 @@ class Namefixer
|
||||
$db->query(sprintf("UPDATE releases SET relnamestatus = 20 WHERE ID = %d", $release['releaseID']));
|
||||
}
|
||||
// The release didn't match so set relnamestatus to 21 so it doesn't get rechecked. Also allows removeCrapReleases to run extra things on the release.
|
||||
if ($namestatus == 1 && $this->matched === false && $type == "Filenames, ")
|
||||
elseif ($namestatus == 1 && $this->matched === false && $type == "Filenames, ")
|
||||
{
|
||||
$db = new DB();
|
||||
$db->query(sprintf("UPDATE releases SET relnamestatus = 21 WHERE ID = %d", $release["releaseID"]));
|
||||
}
|
||||
elseif ($namestatus == 1 && $this->matched === false && $type == "PAR2, ")
|
||||
{
|
||||
$db = new DB();
|
||||
$db->query(sprintf("UPDATE releases SET relnamestatus = 22 WHERE ID = %d", $release["releaseID"]));
|
||||
}
|
||||
}
|
||||
//
|
||||
// Look for a TV name.
|
||||
|
||||
Reference in New Issue
Block a user