Push passworded releases handling update ported from nZEDb.

This commit is contained in:
DariusIII
2015-06-14 16:50:21 +02:00
parent 953329a2f8
commit 35fa7f3ea9
9 changed files with 97 additions and 100 deletions
+6 -3
View File
@@ -45,6 +45,9 @@ class XXX
protected $movieqty;
/**
* @var string
*/
protected $showPasswords;
protected $cookie;
@@ -65,7 +68,7 @@ class XXX
$this->releaseImage = ($options['ReleaseImage'] instanceof \ReleaseImage ? $options['ReleaseImage'] : new \ReleaseImage($this->pdo));
$this->movieqty = ($this->pdo->getSetting('maxxxxprocessed') != '') ? $this->pdo->getSetting('maxxxxprocessed') : 100;
$this->showPasswords = ($this->pdo->getSetting('showpasswordedrelease') != '') ? $this->pdo->getSetting('showpasswordedrelease') : 0;
$this->showPasswords = Releases::showPasswords($this->pdo);
$this->debug = NN_DEBUG;
$this->echooutput = ($options['Echo'] && NN_ECHOCLI);
$this->imgSavePath = NN_COVERS . 'xxx' . DS;
@@ -148,7 +151,7 @@ class XXX
INNER JOIN xxxinfo xxx ON xxx.id = r.xxxinfo_id
WHERE r.nzbstatus = 1
AND xxx.title != ''
AND r.passwordstatus <= %d
AND r.passwordstatus %s
AND %s %s %s %s ",
$this->showPasswords,
$this->getBrowseBy(),
@@ -204,7 +207,7 @@ class XXX
INNER JOIN xxxinfo xxx ON xxx.id = r.xxxinfo_id
WHERE r.nzbstatus = 1
AND xxx.title != ''
AND r.passwordstatus <= %d AND %s %s %s %s
AND r.passwordstatus %s AND %s %s %s %s
GROUP BY xxx.id ORDER BY %s %s %s",
$this->showPasswords,
$this->getBrowseBy(),