mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Remove messages about missing nzb, too annoying and not helpfull at all
This commit is contained in:
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user