From 8ba00a9a0f5142ce23779edd8c5c95d0f50c081f Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 25 Jul 2016 14:30:22 +0200 Subject: [PATCH] Fix Par2Info and SfvInfo class calls in postprocessing --- Changelog | 1 + nntmux/Nfo.php | 9 ++++++--- nntmux/processing/PostProcess.php | 8 ++++---- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Changelog b/Changelog index a61af346c..4e2a89ef9 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2016-07-25 DariusIII + * Fix: Par2Info and SfvInfo class calls in postprocessing * Chg: Use own rarinfo library 2016-07-24 DariusIII * Fix: Improvements to versions updating for XML file. diff --git a/nntmux/Nfo.php b/nntmux/Nfo.php index 397613881..29dc6ea3f 100644 --- a/nntmux/Nfo.php +++ b/nntmux/Nfo.php @@ -1,7 +1,10 @@ setData($possibleNFO); if ($par2info->error) { // Check if it's an SFV. - $sfv = new \SfvInfo(); + $sfv = new SfvInfo(); $sfv->setData($possibleNFO); if ($sfv->error) { return true; diff --git a/nntmux/processing/PostProcess.php b/nntmux/processing/PostProcess.php index bc5aa146b..863360544 100755 --- a/nntmux/processing/PostProcess.php +++ b/nntmux/processing/PostProcess.php @@ -1,6 +1,7 @@ pdo = (($options['Settings'] instanceof Settings) ? $options['Settings'] : new Settings()); $this->groups = (($options['Groups'] instanceof Groups) ? $options['Groups'] : new Groups(['Settings' => $this->pdo])); - $this->_par2Info = new \Par2Info(); + $this->_par2Info = new Par2Info(); $this->debugging = ($options['Logger'] instanceof Logger ? $options['Logger'] : new Logger(['ColorCLI' => $this->pdo->log])); $this->nameFixer = (($options['NameFixer'] instanceof NameFixer) ? $options['NameFixer'] : new NameFixer(['Echo' => $this->echooutput, 'Settings' => $this->pdo, 'Groups' => $this->groups])); $this->Nfo = (($options['Nfo'] instanceof Nfo) ? $options['Nfo'] : new Nfo(['Echo' => $this->echooutput, 'Settings' => $this->pdo])); @@ -267,7 +268,6 @@ class PostProcess (new TVMaze(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processSite($groupID, $guidChar, $processTV); (new TMDB(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processSite($groupID, $guidChar, $processTV); (new TraktTv(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processSite($groupID, $guidChar, $processTV); - //(new TvRage(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processTvRage($groupID, $guidChar, $processTV); } }