mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Revert to old behavior on bad nzb (decrement password status, do not delete the release)
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user