From aa8302dffd24aed899537a0387586326089bb953 Mon Sep 17 00:00:00 2001 From: Darko Date: Thu, 18 Sep 2014 15:08:08 +0200 Subject: [PATCH] Add nn nzb class to usage. --- lib/ProcessAdditional.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ProcessAdditional.php b/lib/ProcessAdditional.php index d961806c7..1ba611b15 100644 --- a/lib/ProcessAdditional.php +++ b/lib/ProcessAdditional.php @@ -317,6 +317,7 @@ Class ProcessAdditional $this->_nfo = ($options['Nfo'] instanceof Info ? $options['Nfo'] : new Info(['Echo' => $this->_echoCLI, 'Settings' => $this->pdo])); $s = new Sites(); $this->site = $s->get(); + $this->nnnzb = new NZB(); $this->_innerFileBlacklist = ($this->site->innerfileblacklist == '' ? false : $this->site->innerfileblacklist); $this->_maxNestedLevels = ($this->site->maxnestedlevels == 0 ? 3 : $this->site->maxnestedlevels); @@ -708,7 +709,7 @@ Class ProcessAdditional */ protected function _getNZBContents() { - $nzbPath = $this->_nzb->NZBPath($this->_release['guid']); + $nzbPath = $this->nnnzb->getNZBPath($this->_release['guid']); if ($nzbPath === false) { $this->_echo('NZB not found for GUID: ' . $this->_release['guid'], 'warning');