diff --git a/lib/Enzebe.php b/lib/Enzebe.php index a89104300..8283f9c6f 100644 --- a/lib/Enzebe.php +++ b/lib/Enzebe.php @@ -1,5 +1,4 @@ db = new DB(); } - public function releaseCleaner($subject, $fromName, $size, $groupName, $usepre = false) + public function releaseCleaner($subject, $fromName, $groupName, $usepre = false) { $match = $matches = array(); $this->groupName = $groupName; $this->subject = $subject; $this->fromName = $fromName; - $this->size = $size; // Get pre style name from releases.name if (preg_match_all('/([\w\(\)]+[\s\._-]([\w\(\)]+[\s\._-])+[\w\(\)]+-\w+)/', $this->subject, $matches)) { diff --git a/lib/ReleaseRemover.php b/lib/ReleaseRemover.php index 90483e25f..101586950 100644 --- a/lib/ReleaseRemover.php +++ b/lib/ReleaseRemover.php @@ -1,5 +1,4 @@ cleanReleaseName($row['relname']); $cleanedName = $releaseCleaning->releaseCleaner( - $row['relname'], $row['fromname'], $row['filesize'], $row['group_name'] + $row['relname'], $row['fromname'], $row['group_name'] ); if (is_array($cleanedName)) { diff --git a/lib/fixReleaseNames.php b/lib/fixReleaseNames.php index 10531f199..fa2913eb5 100644 --- a/lib/fixReleaseNames.php +++ b/lib/fixReleaseNames.php @@ -9,8 +9,6 @@ */ //This script is adapted from nZEDb - -require_once(dirname(__FILE__)."/../bin/config.php"); require_once("namefixer.php"); require_once("prehash.php"); require_once("functions.php"); diff --git a/lib/functions.php b/lib/functions.php index 29eedc220..ff34a8ddc 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1,5 +1,4 @@ timeall = ' AND rel.adddate > (NOW() - INTERVAL 6 HOUR) GROUP BY rel.ID ORDER BY postdate DESC'; $this->fullother = ' AND rel.categoryID IN (1090, 2020, 3050, 6050, 5050, 7050, 8010) GROUP BY rel.ID'; $this->fullall = ''; + $this->_fileName = ''; $this->done = $this->matched = false; $this->c = new ColorCLI(); $this->consoletools = new ConsoleTools(); diff --git a/lib/nzbcontents.php b/lib/nzbcontents.php index e6aef5262..2ea1f6cd5 100644 --- a/lib/nzbcontents.php +++ b/lib/nzbcontents.php @@ -1,5 +1,4 @@