revert the change

This commit is contained in:
DariusIII
2014-04-14 23:10:20 +02:00
parent e9a9d45635
commit 3bca59ea5c
+2 -2
View File
@@ -147,7 +147,7 @@ Class NZBcontents
if ($nzbfile !== false) {
foreach ($nzbfile->file as $nzbcontents) {
if (preg_match('/\.(par[2" ]|\d{2,3}").+\(1\/1\)$/i', $nzbcontents->attributes()->subject)) {
if ($this->functions->parsePAR2($nzbcontents->segments->segment, $relID, $groupID, $nntp, $show) === true && $namestatus === 1) {
if ($this->functions->parsePAR2($nzbcontents->segments->segment, $relID, $groupID, $this->nntp, $show) === true && $namestatus === 1) {
$this->db->exec(sprintf('UPDATE releases SET proc_par2 = 1 WHERE ID = %d', $relID));
return true;
}
@@ -210,7 +210,7 @@ Class NZBcontents
if ($this->lookuppar2 == 1 && $foundPAR2 === false) {
if (preg_match('/\.(par[2" ]|\d{2,3}").+\(1\/1\)$/i', $subject)) {
if ($this->functions->parsePAR2((string)$nzbcontents->segments->segment, $relID, $groupID, $nntp, 1) === true) {
if ($this->functions->parsePAR2((string)$nzbcontents->segments->segment, $relID, $groupID, $this->nntp, 1) === true) {
$this->db->exec(sprintf('UPDATE releases SET proc_par2 = 1 WHERE ID = %d', $relID));
$foundPAR2 = true;
}