From 2dda3855d2c837bf763a27a680f76f913b5acb2e Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 1 Sep 2015 22:29:16 +0200 Subject: [PATCH] Rename TvAnger class into TvRage class, adjust the other classes and scripts accordingly. (cherry picked from commit 8faad9d) --- misc/testing/PostProc/updateTvRage.php | 2 +- misc/update_scripts/update_tvschedule.php | 2 +- newznab/controllers/Info.php | 2 +- newznab/processing/PProcess.php | 2 +- www/pages/calendar.php | 2 +- www/pages/details.php | 2 +- www/pages/series.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/misc/testing/PostProc/updateTvRage.php b/misc/testing/PostProc/updateTvRage.php index 9ffc90aa6..96811a94b 100644 --- a/misc/testing/PostProc/updateTvRage.php +++ b/misc/testing/PostProc/updateTvRage.php @@ -7,7 +7,7 @@ use newznab\utility\Utility; $pdo = new Settings(); -$tvrage = new TvAnger(['Settings' => $pdo, 'Echo' => true]); +$tvrage = new TvRage(['Settings' => $pdo, 'Echo' => true]); $shows = $pdo->queryDirect("SELECT rageid FROM tvrage WHERE imgdata IS NULL ORDER BY rageid DESC LIMIT 2000"); if ($shows->rowCount() > 0) { diff --git a/misc/update_scripts/update_tvschedule.php b/misc/update_scripts/update_tvschedule.php index e7e8d48a9..67d41cfa0 100644 --- a/misc/update_scripts/update_tvschedule.php +++ b/misc/update_scripts/update_tvschedule.php @@ -3,4 +3,4 @@ // Run this once per day. require_once("config.php"); -(new \TvAnger(['Echo' => true]))->updateSchedule(); \ No newline at end of file +(new \TvRage(['Echo' => true]))->updateSchedule(); \ No newline at end of file diff --git a/newznab/controllers/Info.php b/newznab/controllers/Info.php index 4c26be9f2..76429f307 100644 --- a/newznab/controllers/Info.php +++ b/newznab/controllers/Info.php @@ -339,7 +339,7 @@ class Info ] ); $movie = new Movie(['Echo' => $this->echo, 'Settings' => $this->pdo]); - $tvRage = new TvAnger(['Echo' => $this->echo, 'Settings' => $this->pdo]); + $tvRage = new TvRage(['Echo' => $this->echo, 'Settings' => $this->pdo]); foreach ($res as $arr) { $fetchedBinary = $nzbContents->getNFOfromNZB($arr['guid'], $arr['id'], $arr['groupid'], $groups->getByNameByID($arr['groupid'])); diff --git a/newznab/processing/PProcess.php b/newznab/processing/PProcess.php index 603db5576..15a3d56d4 100644 --- a/newznab/processing/PProcess.php +++ b/newznab/processing/PProcess.php @@ -265,7 +265,7 @@ class PProcess { $processTV = (is_numeric($processTV) ? $processTV : $this->pdo->getSetting('lookuptvrage')); if ($processTV > 0) { - (new \TvAnger(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processTvReleases($groupID, $guidChar, $processTV); + (new \TvRage(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processTvReleases($groupID, $guidChar, $processTV); } } diff --git a/www/pages/calendar.php b/www/pages/calendar.php index 14c561f1c..a8da23431 100644 --- a/www/pages/calendar.php +++ b/www/pages/calendar.php @@ -4,7 +4,7 @@ if (!$page->users->isLoggedIn()) { $page->show403(); } -$tvrage = new TvAnger(['Settings' => $page->settings]); +$tvrage = new TvRage(['Settings' => $page->settings]); $date = date("Y-m-d"); if (isset($_GET["date"])) { diff --git a/www/pages/details.php b/www/pages/details.php index da735b9a6..eef9a63b0 100644 --- a/www/pages/details.php +++ b/www/pages/details.php @@ -29,7 +29,7 @@ if (isset($_GET["id"])) $rage = ''; if ($data["rageid"] != '') { - $tvrage = new TvAnger(); + $tvrage = new TvRage(); $rageinfo = $tvrage->getByRageID($data["rageid"]); if (count($rageinfo) > 0) diff --git a/www/pages/series.php b/www/pages/series.php index 3ca7924ed..868d1d2e8 100644 --- a/www/pages/series.php +++ b/www/pages/series.php @@ -5,7 +5,7 @@ if (!$page->users->isLoggedIn()) { } $releases = new Releases(); -$tvrage = new TvAnger(); +$tvrage = new TvRage(); $cat = new Category(); $us = new UserSeries();