Revert to old behavior on bad nzb (decrement password status, do not delete the release)

This commit is contained in:
DariusIII
2019-04-01 11:35:34 +02:00
parent 72697b2033
commit e757a77e8f
2 changed files with 7 additions and 6 deletions
@@ -804,24 +804,24 @@ class ProcessAdditional
{
$nzbPath = $this->_nzb->NZBPath($this->_release->guid);
if ($nzbPath === false) {
$this->_echo('NZB not found for GUID: '.$this->_release->guid.', deleting the release.', 'warning');
$this->_echo('NZB not found for GUID: '.$this->_release->guid, 'warning');
$this->_deleteRelease();
$this->_decrementPasswordStatus();
}
$nzbContents = Utility::unzipGzipFile($nzbPath);
if (! $nzbContents) {
$this->_echo('NZB is empty or broken for GUID: '.$this->_release->guid.', deleting the release.', 'warning');
$this->_echo('NZB is empty or broken for GUID: '.$this->_release->guid, 'warning');
$this->_deleteRelease();
$this->_decrementPasswordStatus();
}
// Get a list of files in the nzb.
$this->_nzbContents = $this->_nzb->nzbFileList($nzbContents, ['no-file-key' => false, 'strip-count' => true]);
if (\count($this->_nzbContents) === 0) {
$this->_echo('NZB is potentially broken for GUID: '.$this->_release->guid.', deleting the release.', 'warning');
$this->_echo('NZB is potentially broken for GUID: '.$this->_release->guid, 'warning');
$this->_deleteRelease();
$this->_decrementPasswordStatus();
}
// Sort keys.
ksort($this->_nzbContents, SORT_NATURAL);
+1
View File
@@ -1,4 +1,5 @@
2019-04-01 DariusIII
* CHg: Revert to old behavior on bad nzb (decrement password status, do not delete the release)
* Fix: Fix bad check for debug condition in Forking
* Chg: Use now() helper in Forking date display
* Chg: Update used libraries to their latest versions