diff --git a/Blacklight/processing/post/ProcessAdditional.php b/Blacklight/processing/post/ProcessAdditional.php index 6d4855299..614874d83 100755 --- a/Blacklight/processing/post/ProcessAdditional.php +++ b/Blacklight/processing/post/ProcessAdditional.php @@ -885,6 +885,7 @@ class ProcessAdditional { $totalBookFiles = 0; foreach ($this->_nzbContents as $this->_currentNZBFile) { + try{ // Check if it's not a nfo, nzb, par2 etc... if (preg_match($this->_supportFileRegex.'|nfo\b|inf\b|ofn\b)($|[ ")\]-])(?!.{20,})/i', $this->_currentNZBFile['title'])) { @@ -947,6 +948,9 @@ class ProcessAdditional if (preg_match($this->_ignoreBookRegex, $this->_currentNZBFile['title'])) { $totalBookFiles++; } + } catch (\ErrorException $e) { + Log::debug($e->getTraceAsString()); + } } return $totalBookFiles;