mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
Updated scripts, fixing stuff i previously edited.
This commit is contained in:
+18
-17
@@ -108,9 +108,10 @@ class PProcess
|
||||
$options += $defaults;
|
||||
|
||||
//\\ Various.
|
||||
$this->echooutput = ($options['Echo'] && nZEDb_ECHOCLI);
|
||||
$this->echooutput = ($options['Echo'] && NN_ECHOCLI);
|
||||
//\\
|
||||
|
||||
$s = new Sites();
|
||||
$this->site = $s->get();
|
||||
//\\ Class instances.
|
||||
$this->pdo = (($options['Settings'] instanceof DB) ? $options['Settings'] : new DB());
|
||||
$this->groups = (($options['Groups'] instanceof Groups) ? $options['Groups'] : new Groups(['Settings' => $this->pdo]));
|
||||
@@ -122,8 +123,8 @@ class PProcess
|
||||
//\\
|
||||
|
||||
//\\ Site settings.
|
||||
$this->addpar2 = ($this->site->('addpar2') == 0) ? false : true;
|
||||
$this->alternateNNTP = ($this->site->('alternate_nntp') == 1 ? true : false);
|
||||
$this->addpar2 = ($this->site->addpar2 == 0) ? false : true;
|
||||
$this->alternateNNTP = ($this->site->alternate_nntp == 1 ? true : false);
|
||||
//\\
|
||||
}
|
||||
|
||||
@@ -156,7 +157,7 @@ class PProcess
|
||||
*/
|
||||
public function processAnime()
|
||||
{
|
||||
if ($this->site->('lookupanidb') == 1) {
|
||||
if ($this->site->lookupanidb == 1) {
|
||||
$anidb = new AniDB(['Echo' => $this->echooutput, 'Settings' => $this->pdo]);
|
||||
$anidb->animetitlesUpdate();
|
||||
$anidb->processAnimeReleases();
|
||||
@@ -170,7 +171,7 @@ class PProcess
|
||||
*/
|
||||
public function processBooks()
|
||||
{
|
||||
if ($this->site->('lookupbooks') != 0) {
|
||||
if ($this->site->lookupbooks != 0) {
|
||||
(new Books(['Echo' => $this->echooutput, 'Settings' => $this->pdo, ]))->processBookReleases();
|
||||
}
|
||||
}
|
||||
@@ -182,8 +183,8 @@ class PProcess
|
||||
*/
|
||||
public function processConsoles()
|
||||
{
|
||||
if ($this->site->('lookupgames') != 0) {
|
||||
(new Console(['Settings' => $this->pdo, 'Echo' => $this->echooutput]))->processConsoleReleases();
|
||||
if ($this->site->lookupgames != 0) {
|
||||
(new Console())->processConsoleReleases();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,7 +195,7 @@ class PProcess
|
||||
*/
|
||||
public function processGames()
|
||||
{
|
||||
if ($this->site->('lookupgames') != 0) {
|
||||
if ($this->site->lookupgames != 0) {
|
||||
(new Games(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processGamesReleases();
|
||||
}
|
||||
}
|
||||
@@ -211,9 +212,9 @@ class PProcess
|
||||
*/
|
||||
public function processMovies($groupID = '', $guidChar = '', $processMovies = '')
|
||||
{
|
||||
$processMovies = (is_numeric($processMovies) ? $processMovies : $this->site->('lookupimdb'));
|
||||
$processMovies = (is_numeric($processMovies) ? $processMovies : $this->site->lookupimdb);
|
||||
if ($processMovies > 0) {
|
||||
(new Movie(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processMovieReleases($groupID, $guidChar, $processMovies);
|
||||
(new Film(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processMovieReleases($groupID, $guidChar, $processMovies);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -224,8 +225,8 @@ class PProcess
|
||||
*/
|
||||
public function processMusic()
|
||||
{
|
||||
if ($this->site->('lookupmusic') != 0) {
|
||||
(new Music(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processMusicReleases();
|
||||
if ($this->site->lookupmusic != 0) {
|
||||
(new Music())->processMusicReleases();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,8 +241,8 @@ class PProcess
|
||||
*/
|
||||
public function processNfos(&$nntp, $groupID = '', $guidChar = '')
|
||||
{
|
||||
if ($this->site->('lookupnfo') == 1) {
|
||||
$this->Nfo->processNfoFiles($nntp, $groupID, $guidChar, (int)$this->site->('lookupimdb'), (int)$this->site->('lookuptvrage'));
|
||||
if ($this->site->lookupnfo == 1) {
|
||||
$this->Nfo->processNfoFiles($nntp, $groupID, $guidChar, (int)$this->site->lookupimdb, (int)$this->site->lookuptvrage);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,7 +268,7 @@ class PProcess
|
||||
*/
|
||||
public function processTv($groupID = '', $guidChar = '', $processTV = '')
|
||||
{
|
||||
$processTV = (is_numeric($processTV) ? $processTV : $this->site->('lookuptvrage'));
|
||||
$processTV = (is_numeric($processTV) ? $processTV : $this->site->lookuptvrage);
|
||||
if ($processTV > 0) {
|
||||
(new TvAnger(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processTvReleases($groupID, $guidChar, $processTV);
|
||||
}
|
||||
@@ -278,7 +279,7 @@ class PProcess
|
||||
*/
|
||||
public function processXXX()
|
||||
{
|
||||
if ($this->site->('lookupxxx') == 1) {
|
||||
if ($this->site->lookupxxx == 1) {
|
||||
(new XXX(['Echo' => $this->echooutput, 'Settings' => $this->pdo]))->processXXXReleases();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user