mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
Rename TvAnger class into TvRage class, adjust the other classes and scripts accordingly.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
// Run this once per day.
|
||||
require_once("config.php");
|
||||
|
||||
(new \TvAnger(['Echo' => true]))->updateSchedule();
|
||||
(new \TvRage(['Echo' => true]))->updateSchedule();
|
||||
@@ -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
+830
-733
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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"])) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -5,7 +5,7 @@ if (!$page->users->isLoggedIn()) {
|
||||
}
|
||||
|
||||
$releases = new Releases();
|
||||
$tvrage = new TvAnger();
|
||||
$tvrage = new TvRage();
|
||||
$cat = new Category();
|
||||
$us = new UserSeries();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user