Rename TvAnger class into TvRage class, adjust the other classes and scripts accordingly.

This commit is contained in:
DariusIII
2015-09-01 22:29:16 +02:00
parent 2ec8b9e062
commit 8faad9d112
9 changed files with 837 additions and 1904 deletions
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -3,4 +3,4 @@
// Run this once per day.
require_once("config.php");
(new \TvAnger(['Echo' => true]))->updateSchedule();
(new \TvRage(['Echo' => true]))->updateSchedule();
+1 -1
View File
@@ -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']));
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -267,7 +267,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);
}
}
+1 -1
View File
@@ -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"])) {
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -5,7 +5,7 @@ if (!$page->users->isLoggedIn()) {
}
$releases = new Releases();
$tvrage = new TvAnger();
$tvrage = new TvRage();
$cat = new Category();
$us = new UserSeries();