Remove messages about missing nzb, too annoying and not helpfull at all

This commit is contained in:
DariusIII
2019-02-13 09:41:17 +01:00
parent b3838d9d54
commit d01dcb5507
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -303,7 +303,7 @@ class NZB
$nzbPath = $this->siteNzbPath.$nzbPath;
if ($createIfNotExist === true && ! File::isDirectory($nzbPath) && ! File::makeDirectory($nzbPath, 0777, true) && ! File::isDirectory($nzbPath)) {
if ($createIfNotExist && ! File::isDirectory($nzbPath) && ! File::makeDirectory($nzbPath, 0777, true) && ! File::isDirectory($nzbPath)) {
throw new \RuntimeException(sprintf('Directory "%s" was not created', $nzbPath));
}
+1 -5
View File
@@ -81,7 +81,7 @@ class NZBContents
$this->nntp = ($options['NNTP'] instanceof NNTP ? $options['NNTP'] : new NNTP(['Echo' => $this->echooutput]));
$this->nfo = ($options['Nfo'] instanceof Nfo ? $options['Nfo'] : new Nfo());
$this->pp = (
$options['PostProcess'] instanceof PostProcess
$options['PostProcess'] instanceof PostProcess
? $options['PostProcess']
: new PostProcess(['Echo' => $this->echooutput, 'Nfo' => $this->nfo])
);
@@ -216,10 +216,6 @@ class NZBContents
// Fetch the NZB location using the GUID.
$nzbPath = $this->nzb->NZBPath($guid);
if ($nzbPath === false) {
if ($this->echooutput) {
echo PHP_EOL.$guid.' appears to be missing the nzb file, skipping.'.PHP_EOL;
}
return false;
}
$nzbContents = Utility::unzipGzipFile($nzbPath);
+2
View File
@@ -1,3 +1,5 @@
2019-02-13 DariusIII
* Chg: Remove messages about missing nzb, too annoying and not helpfull at all
2019-02-12 DariusIII
* Chg: Update laravel/framework (v5.7.25 => v5.7.26)
* Chg: Update phpstan/phpstan (0.11.1 => 0.11.2)