mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 02:08:57 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR."/lib/framework/db.php");
|
||||
require_once(WWW_DIR."/lib/site.php");
|
||||
require_once(WWW_DIR."/lib/category.php");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR . "/lib/framework/db.php");
|
||||
require_once("prehash.php");
|
||||
require_once("IRCClient.php");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../bin/config.php");
|
||||
require_once(dirname(__FILE__) . "/../IRCScraper.php");
|
||||
require_once 'settings.php';
|
||||
if (!is_file('/var/www/newznab/misc/update_scripts/nix_scripts/tmux/lib/IRCScraper/settings.php')) {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR . "/lib/framework/db.php");
|
||||
require_once(WWW_DIR . "/lib/site.php");
|
||||
require_once(WWW_DIR . "/lib/Tmux.php");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__)."/../bin/config.php");
|
||||
require_once(WWW_DIR."/lib/framework/db.php");
|
||||
require_once(WWW_DIR."/lib/amazon.php");
|
||||
require_once(WWW_DIR."lib/site.php");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR . "lib/rarinfo/par2info.php");
|
||||
require_once(WWW_DIR . "lib/rarinfo/archiveinfo.php");
|
||||
require_once(WWW_DIR . "lib/rarinfo/zipinfo.php");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR . "/lib/rarinfo/par2info.php");
|
||||
require_once(WWW_DIR . "/lib/rarinfo/archiveinfo.php");
|
||||
require_once(WWW_DIR . "/lib/rarinfo/zipinfo.php");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__)."/../bin/config.php");
|
||||
require_once(WWW_DIR . "lib/framework/db.php");
|
||||
require_once(WWW_DIR."lib/groups.php");
|
||||
require_once("prehash.php");
|
||||
@@ -15,7 +14,6 @@ class ReleaseCleaning
|
||||
{
|
||||
public $subject = '';
|
||||
public $groupName = '';
|
||||
public $size = '';
|
||||
public $fromName = '';
|
||||
|
||||
/**
|
||||
@@ -30,13 +28,12 @@ class ReleaseCleaning
|
||||
$this->db = new DB();
|
||||
}
|
||||
|
||||
public function releaseCleaner($subject, $fromName, $size, $groupName, $usepre = false)
|
||||
public function releaseCleaner($subject, $fromName, $groupName, $usepre = false)
|
||||
{
|
||||
$match = $matches = array();
|
||||
$this->groupName = $groupName;
|
||||
$this->subject = $subject;
|
||||
$this->fromName = $fromName;
|
||||
$this->size = $size;
|
||||
|
||||
// Get pre style name from releases.name
|
||||
if (preg_match_all('/([\w\(\)]+[\s\._-]([\w\(\)]+[\s\._-])+[\w\(\)]+-\w+)/', $this->subject, $matches)) {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR . "/lib/framework/cache.php");
|
||||
require_once(WWW_DIR . "/lib/framework/db.php");
|
||||
require_once(WWW_DIR . "/lib/releases.php");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR . "lib/framework/db.php");
|
||||
require_once(WWW_DIR . '/lib/nntp.php');
|
||||
require_once("functions.php");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR . '/lib/Tmux.php');
|
||||
require_once(WWW_DIR . '/lib/util.php');
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR . "/lib/framework/db.php");
|
||||
require_once(WWW_DIR . "/lib/category.php");
|
||||
require_once(WWW_DIR . "/lib/Tmux.php");
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
define('FS_ROOT', realpath(dirname(__FILE__)));
|
||||
require_once(FS_ROOT . "/../../www/config.php");
|
||||
require_once(FS_ROOT . "/../../www/lib/framework/db.php");
|
||||
require_once(FS_ROOT . "/../../www/lib/releases.php");
|
||||
require_once(FS_ROOT . "/../../www/lib/nzbinfo.php");
|
||||
|
||||
@@ -1707,7 +1707,7 @@ class Releases
|
||||
$releaseCleaning = new ReleaseCleaning();
|
||||
$cleanRelName = $this->cleanReleaseName($row['relname']);
|
||||
$cleanedName = $releaseCleaning->releaseCleaner(
|
||||
$row['relname'], $row['fromname'], $row['filesize'], $row['group_name']
|
||||
$row['relname'], $row['fromname'], $row['group_name']
|
||||
);
|
||||
|
||||
if (is_array($cleanedName)) {
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
*/
|
||||
|
||||
//This script is adapted from nZEDb
|
||||
|
||||
require_once(dirname(__FILE__)."/../bin/config.php");
|
||||
require_once("namefixer.php");
|
||||
require_once("prehash.php");
|
||||
require_once("functions.php");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR . "/lib/framework/db.php");
|
||||
require_once(WWW_DIR . "/lib/category.php");
|
||||
require_once(WWW_DIR . "/lib/releases.php");
|
||||
|
||||
@@ -77,6 +77,7 @@ class NameFixer
|
||||
$this->timeall = ' AND rel.adddate > (NOW() - INTERVAL 6 HOUR) GROUP BY rel.ID ORDER BY postdate DESC';
|
||||
$this->fullother = ' AND rel.categoryID IN (1090, 2020, 3050, 6050, 5050, 7050, 8010) GROUP BY rel.ID';
|
||||
$this->fullall = '';
|
||||
$this->_fileName = '';
|
||||
$this->done = $this->matched = false;
|
||||
$this->c = new ColorCLI();
|
||||
$this->consoletools = new ConsoleTools();
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__)."/../bin/config.php");
|
||||
require_once(WWW_DIR."/lib/framework/db.php");
|
||||
require_once(WWW_DIR."/lib/nntp.php");
|
||||
require_once(WWW_DIR . "/lib/nzb.php");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../bin/config.php");
|
||||
require_once(WWW_DIR . "lib/nntp.php");
|
||||
require_once(WWW_DIR . "/lib/nntp.php");
|
||||
require_once("prehash.php");
|
||||
require_once("ColorCLI.php");
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__)."/../bin/config.php");
|
||||
require_once(WWW_DIR."lib/framework/db.php");
|
||||
require_once(WWW_DIR."lib/groups.php");
|
||||
require_once(WWW_DIR."lib/nfo.php");
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
*/
|
||||
|
||||
require_once(dirname(__FILE__)."/../bin/config.php");
|
||||
require_once(WWW_DIR."lib/framework/db.php");
|
||||
require_once(WWW_DIR."lib/releases.php");
|
||||
require_once(WWW_DIR."lib/site.php");
|
||||
require_once(WWW_DIR."/lib/framework/db.php");
|
||||
require_once(WWW_DIR."/lib/releases.php");
|
||||
require_once(WWW_DIR."/lib/site.php");
|
||||
require_once("functions.php");
|
||||
require_once ("ColorCLI.php");
|
||||
require_once("ReleaseRemover.php");
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
//This script is ported from nZEDb and adapted for newznab
|
||||
require_once(dirname(__FILE__)."/../bin/config.php");
|
||||
require_once("consoletools.php");
|
||||
|
||||
// This script is simply so I can show sleep progress in bash script
|
||||
|
||||
@@ -39,7 +39,7 @@ where = ""
|
||||
datelimit = "AND DATEDIFF(NOW(), r.adddate) <= 7"
|
||||
groupby = "GROUP BY LEFT(r.guid, 1)"
|
||||
orderby = "ORDER BY LEFT(r.guid, 1) ASC"
|
||||
rowlimit = "LIMIT 16"
|
||||
rowlimit = "LIMIT 100"
|
||||
|
||||
cur[0].execute("SELECT value FROM tmux WHERE setting = 'fixnamethreads'")
|
||||
run_threads = cur[0].fetchone()
|
||||
|
||||
Reference in New Issue
Block a user