From ba06c9f90fea2c77cb6f86b57a03656fbe38c615 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 21 Oct 2015 14:36:39 +0200 Subject: [PATCH] Add back spotnab processing to postProcess --- Changelog | 1 + newznab/processing/PostProcess.php | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/Changelog b/Changelog index 20c4bf9eb..ac0c1b937 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2015-10-21 DariusIII + Fix: Add back spotnab processing to PostProcess Chg: Disable rage checking in Nfo until new method is added Fix: one extra argument in query Fix: class text does not exist in nntmux diff --git a/newznab/processing/PostProcess.php b/newznab/processing/PostProcess.php index 676972ccf..4ef70a751 100755 --- a/newznab/processing/PostProcess.php +++ b/newznab/processing/PostProcess.php @@ -19,6 +19,7 @@ use newznab\ReleaseFiles; use newznab\db\Settings; use newznab\processing\post\AniDB; use newznab\processing\post\ProcessAdditional; +use newznab\SpotNab; use newznab\utility; require_once NN_LIBS . 'rarinfo/par2info.php'; @@ -128,6 +129,7 @@ class PostProcess $this->processAdditional($nntp); $this->processNfos($nntp); $this->processSharing($nntp); + $this->processSpotnab(); $this->processMovies(); $this->processMusic(); $this->processConsoles(); @@ -261,6 +263,27 @@ class PostProcess } } + /** + * Process Global IDs + */ + public function processSpotnab() + { + $spotnab = new SpotNab(); + $processed = $spotnab->processGID(500); + if ($processed > 0) { + if ($this->echooutput) { + $this->pdo->log->doEcho( + $this->pdo->log->primary('Updating GID in releases table ' . $processed . ' release(s) updated') + ); + } + } + $spotnab->auto_post_discovery(); + $spotnab->fetch_discovery(); + $spotnab->fetch(); + $spotnab->post(); + $spotnab->auto_clean(); + } + /** * Lookup xxx if enabled. */