mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Use nntmux namespace, rename nntmux script to tmux.Update composer.lock.
This commit is contained in:
+4
-4
@@ -14,10 +14,10 @@ test.php
|
||||
/.idea/
|
||||
/app/libraries/*
|
||||
/app/resources/tmp/*
|
||||
/newznab/config/settings.php
|
||||
/newznab/config/ircscraper_settings.php
|
||||
/newznab/config/ircscraper.php
|
||||
/newznab/config/opensssl.php
|
||||
/nntmux/config/settings.php
|
||||
/nntmux/config/ircscraper_settings.php
|
||||
/nntmux/config/ircscraper.php
|
||||
/nntmux/config/opensssl.php
|
||||
|
||||
/libraries/*
|
||||
/nbproject/
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
2016-06-25 DariusIII
|
||||
* Upd: Update composer.lock
|
||||
* Chg: Switch namespace from newznab to nntmux, rename nntmux script to tmux
|
||||
* Upd: Update lithium connections
|
||||
* Upd: Composer will prefer source now on install
|
||||
2016-06-24 DariusIII
|
||||
|
||||
@@ -74,7 +74,7 @@ use lithium\data\Connections;
|
||||
// ));
|
||||
|
||||
$config1 = LITHIUM_APP_PATH . DS . 'config' . DS . 'db-config.php';
|
||||
$config2 = NN_ROOT . 'newznab' . DS . 'config' . DS . 'config.php';
|
||||
$config2 = NN_ROOT . 'nntmux' . DS . 'config' . DS . 'config.php';
|
||||
$config = file_exists($config1) ? $config1 : $config2;
|
||||
|
||||
if (file_exists($config)) {
|
||||
|
||||
@@ -23,7 +23,7 @@ use \Smarty;
|
||||
use \app\extensions\util\Git;
|
||||
use \app\extensions\util\Versions;
|
||||
use \lithium\console\command\Help;
|
||||
use \newznab\db\DbUpdate;
|
||||
use \nntmux\db\DbUpdate;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
|
||||
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'indexer.php';
|
||||
|
||||
use newznab\db\DbUpdate;
|
||||
use newznab\utility\Git;
|
||||
use newznab\utility\Utility;
|
||||
use nntmux\db\DbUpdate;
|
||||
use nntmux\utility\Git;
|
||||
use nntmux\utility\Utility;
|
||||
|
||||
if (!Utility::isCLI()) {
|
||||
exit;
|
||||
|
||||
@@ -22,16 +22,16 @@ define('GIT_PRE_COMMIT', true);
|
||||
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\DbUpdate;
|
||||
use newznab\utility\Git;
|
||||
use newznab\utility\Versions;
|
||||
use nntmux\db\DbUpdate;
|
||||
use nntmux\utility\Git;
|
||||
use nntmux\utility\Versions;
|
||||
|
||||
echo "Running pre-commit hooks\n";
|
||||
|
||||
$error = false;
|
||||
|
||||
// TODO Add code here to check permissions on staged files.
|
||||
//$files = file(NN_ROOT . 'newznab/build/git-hooks'), FILE_IGNORE_NEW_LINES);
|
||||
//$files = file(NN_ROOT . 'nntmux/build/git-hooks'), FILE_IGNORE_NEW_LINES);
|
||||
//foreach ($files as $file) {
|
||||
// echo "Filename: $file\n";
|
||||
//}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
<precommit>9</precommit>
|
||||
<!-- this is the version of the pre-commit file in githooks NOT the files it calls -->
|
||||
</hooks>
|
||||
<commit>5325</commit></git>
|
||||
<commit>5326</commit></git>
|
||||
<scripts>
|
||||
<last>
|
||||
<date>0000-00-00</date>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
/* This script is designed to gather all show data from anidb and add it to the anidb table for newznab, as part of this process we need the number of PI queries that can be executed max and whether or not we want debuging the first argument if unset will try to do the entire list (a good way to get banned), the second option can be blank or true for debugging.
|
||||
/* This script is designed to gather all show data from anidb and add it to the anidb table for nntmux, as part of this process we need the number of PI queries that can be executed max and whether or not we want debuging the first argument if unset will try to do the entire list (a good way to get banned), the second option can be blank or true for debugging.
|
||||
* IF you are using this script then then you also want to edit anidb.php in www/lib and locate "604800" and replace it with 1204400, this will make sure it never tries to connect to anidb as this will fail
|
||||
*/
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\db\populate\AniDB;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\db\populate\AniDB;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
*/
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\PreDb;
|
||||
use newznab\utility\Utility;
|
||||
use nntmux\db\PreDb;
|
||||
use nntmux\utility\Utility;
|
||||
|
||||
if (!Utility::isWin()) {
|
||||
if (NN_DEBUG) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
use newznab\ReleaseImage;
|
||||
use newznab\utility\Utility;
|
||||
use nntmux\ReleaseImage;
|
||||
use nntmux\utility\Utility;
|
||||
|
||||
if (!isset($argv[1]) || $argv[1] !== 'yes') {
|
||||
exit(
|
||||
|
||||
+2
-2
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
require_once realpath(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\utility\Utility;
|
||||
use newznab\utility\Versions;
|
||||
use nntmux\utility\Utility;
|
||||
use nntmux\utility\Versions;
|
||||
|
||||
if (!Utility::isCLI()) {
|
||||
exit;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
],
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"newznab\\": "newznab/"
|
||||
"nntmux\\": "nntmux/"
|
||||
},
|
||||
"classmap": [
|
||||
"www/pages/",
|
||||
|
||||
Generated
+5
-5
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "65867ff98b70d729e240bfeab1cd52c3",
|
||||
"hash": "76832dcbf70cc9f08ca16c7ccef0d624",
|
||||
"content-hash": "722189a7778ff9d599d98f0a64502efe",
|
||||
"packages": [
|
||||
{
|
||||
@@ -1420,12 +1420,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/UnionOfRAD/lithium.git",
|
||||
"reference": "aa9b5e8bdb39ddacc2b9cd5b05c8564e80eca21f"
|
||||
"reference": "ab51c2ba498d22d2d4ca261018c046d716902419"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/UnionOfRAD/lithium/zipball/aa9b5e8bdb39ddacc2b9cd5b05c8564e80eca21f",
|
||||
"reference": "aa9b5e8bdb39ddacc2b9cd5b05c8564e80eca21f",
|
||||
"url": "https://api.github.com/repos/UnionOfRAD/lithium/zipball/ab51c2ba498d22d2d4ca261018c046d716902419",
|
||||
"reference": "ab51c2ba498d22d2d4ca261018c046d716902419",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1458,7 +1458,7 @@
|
||||
"li3",
|
||||
"lithium"
|
||||
],
|
||||
"time": "2016-06-17 19:00:57"
|
||||
"time": "2016-06-25 10:09:25"
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ if (!defined('NN_ROOT')) {
|
||||
}
|
||||
|
||||
// Used to refer to the main lib class files.
|
||||
define('NN_LIB', NN_ROOT . 'newznab' . DS);
|
||||
define('NN_LIB', NN_ROOT . 'nntmux' . DS);
|
||||
define('NN_CORE', NN_LIB);
|
||||
|
||||
define('NN_CONFIGS', NN_CORE . 'config' . DS);
|
||||
|
||||
+2
-2
@@ -23,8 +23,8 @@ require_once 'autoloader.php';
|
||||
//require_once 'libs/autoloader.php';
|
||||
//require_once 'vendor/autoload.php';
|
||||
|
||||
use newznab\config\Configure;
|
||||
use newznab\utility\Utility;
|
||||
use nntmux\config\Configure;
|
||||
use nntmux\utility\Utility;
|
||||
|
||||
$config = new Configure('indexer');
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
require_once 'SPLClassLoader.php';
|
||||
require_once 'constants.php';
|
||||
|
||||
$classLoader = new SplClassLoader('newznab', [__DIR__ . DIRECTORY_SEPARATOR . 'newznab']);
|
||||
$classLoader = new SplClassLoader('nntmux', [__DIR__ . DIRECTORY_SEPARATOR . 'nntmux']);
|
||||
$classLoader->register();
|
||||
|
||||
?>
|
||||
@@ -147,7 +147,7 @@ class Episode{
|
||||
* Reload the content of this class.<br>
|
||||
* Could be used to update or complete the information.
|
||||
*
|
||||
* @param \newznab\libraries\TmdbAPI $tmdb An instance of the API handler, necesary to make the API call.
|
||||
* @param \nntmux\libraries\TmdbAPI $tmdb An instance of the API handler, necesary to make the API call.
|
||||
*/
|
||||
public function reload($tmdb) {
|
||||
$tmdb->getEpisode($this->getTVShowID(), $this->getSeasonNumber(), $this->getEpisodeNumber());
|
||||
|
||||
@@ -147,7 +147,7 @@ class Season{
|
||||
* Reload the content of this class.<br>
|
||||
* Could be used to update or complete the information.
|
||||
*
|
||||
* @param \newznab\libraries\Tmdb $tmdb An instance of the API handler, necesary to make the API call.
|
||||
* @param \nntmux\libraries\Tmdb $tmdb An instance of the API handler, necesary to make the API call.
|
||||
*/
|
||||
public function reload($tmdb) {
|
||||
$tmdb->getSeason($this->getTVShowID(), $this->getSeasonNumber());
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\IRCScraper;
|
||||
use nntmux\IRCScraper;
|
||||
|
||||
if (!defined('IRC_SCRAPER_CONFIG')) {
|
||||
define('IRC_SCRAPER_CONFIG', NN_CONFIGS . 'ircscraper_settings.php');
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\ReleaseSearch;
|
||||
use newznab\db\DB;
|
||||
use nntmux\ReleaseSearch;
|
||||
use nntmux\db\DB;
|
||||
|
||||
if (NN_RELEASE_SEARCH_TYPE != ReleaseSearch::SPHINX) {
|
||||
exit('Error, NN_RELEASE_SEARCH_TYPE in newznab/config/settings.php must be set to SPHINX!' . PHP_EOL);
|
||||
exit('Error, NN_RELEASE_SEARCH_TYPE in nntmux/config/settings.php must be set to SPHINX!' . PHP_EOL);
|
||||
}
|
||||
|
||||
$sphinxConnection = '';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\SphinxSearch;
|
||||
use nntmux\SphinxSearch;
|
||||
|
||||
if (!isset($argv[1]) || !in_array($argv[1], ['releases_rt', 'release_files_rt'])) {
|
||||
exit('Argument1 is the index name, currently only releases_rt/release_files_rt are supported.' . PHP_EOL);
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\ReleaseSearch;
|
||||
use newznab\SphinxSearch;
|
||||
use newznab\db\DB;
|
||||
use nntmux\ReleaseSearch;
|
||||
use nntmux\SphinxSearch;
|
||||
use nntmux\db\DB;
|
||||
|
||||
if (NN_RELEASE_SEARCH_TYPE != ReleaseSearch::SPHINX) {
|
||||
exit('Error, NN_RELEASE_SEARCH_TYPE in newznab/config/settings.php must be set to SPHINX!' . PHP_EOL);
|
||||
exit('Error, NN_RELEASE_SEARCH_TYPE in nntmux/config/settings.php must be set to SPHINX!' . PHP_EOL);
|
||||
} else if (!isset($argv[1]) || !in_array($argv[1], ['releases_rt'])) {
|
||||
exit(
|
||||
"Argument 1 is the index name, releases_rt are the only supported ones currently.\n" .
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\ReleaseSearch;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\ReleaseSearch;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
|
||||
if (!isset($argv[1]) || !in_array($argv[1], ['sphinx', 'standard'])) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\NNTP;
|
||||
use newznab\Binaries;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\NNTP;
|
||||
use nntmux\Binaries;
|
||||
|
||||
|
||||
/* This script will update the groups table to get the new article numbers for each group you have activated.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\ColorCLI;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\ColorCLI;
|
||||
|
||||
$cli = new ColorCLI();
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\Groups;
|
||||
use newznab\ConsoleTools;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\Groups;
|
||||
use nntmux\ConsoleTools;
|
||||
|
||||
|
||||
$debug = false;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\Groups;
|
||||
use newznab\ConsoleTools;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\Groups;
|
||||
use nntmux\ConsoleTools;
|
||||
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
//This script will update all records in the movieinfo table
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\processing\tv\TraktTv;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\processing\tv\TraktTv;
|
||||
|
||||
$pdo = new Settings();
|
||||
$trakt = new TraktTv(['Settings' => $pdo]);
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
use newznab\ColorCLI;
|
||||
use newznab\ConsoleTools;
|
||||
use newznab\Releases;
|
||||
use newznab\NZB;
|
||||
use newznab\ReleaseImage;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\utility\Utility;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\ConsoleTools;
|
||||
use nntmux\Releases;
|
||||
use nntmux\NZB;
|
||||
use nntmux\ReleaseImage;
|
||||
|
||||
$cli = new ColorCLI();
|
||||
if (isset($argv[1])) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\Category;
|
||||
use newznab\ConsoleTools;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\Category;
|
||||
use nntmux\ConsoleTools;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$category = new Category();
|
||||
$pdo = new Settings();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
use newznab\ReleaseImage;
|
||||
use newznab\NZB;
|
||||
use newznab\ConsoleTools;
|
||||
use newznab\SphinxSearch;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\utility\Utility;
|
||||
use nntmux\ReleaseImage;
|
||||
use nntmux\NZB;
|
||||
use nntmux\ConsoleTools;
|
||||
use nntmux\SphinxSearch;
|
||||
|
||||
Utility::clearScreen();
|
||||
$pdo = new Settings();
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
*/
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\Users;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\Users;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
*/
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\ColorCLI;
|
||||
use newznab\Users;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\Users;
|
||||
|
||||
$colorCLI = new ColorCLI();
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\ConsoleTools;
|
||||
use newznab\NZB;
|
||||
use newznab\ReleaseImage;
|
||||
use newznab\Releases;
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
use nntmux\ConsoleTools;
|
||||
use nntmux\NZB;
|
||||
use nntmux\ReleaseImage;
|
||||
use nntmux\Releases;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\utility\Utility;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\ConsoleTools;
|
||||
use newznab\NZB;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\ConsoleTools;
|
||||
use nntmux\NZB;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
if (!isset($argv[1]) || !isset($argv[2])) {
|
||||
exit("ERROR: You must supply the level you want to reorganize it to, and the source directory (You would use: 3 .../newznab/resources/nzb/ to move it to 3 levels deep)\n");
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
// --------------------------------------------------------------
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
use newznab\Releases;
|
||||
use newznab\NZB;
|
||||
use newznab\ReleaseImage;
|
||||
use newznab\ConsoleTools;
|
||||
use newznab\Movie;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\utility\Utility;
|
||||
use nntmux\Releases;
|
||||
use nntmux\NZB;
|
||||
use nntmux\ReleaseImage;
|
||||
use nntmux\ConsoleTools;
|
||||
use nntmux\Movie;
|
||||
|
||||
$pdo = new Settings();
|
||||
$movie = new Movie(['Echo' => true, 'Settings' => $pdo]);
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
// --------------------------------------------------------------
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
use newznab\Releases;
|
||||
use newznab\NZB;
|
||||
use newznab\ReleaseImage;
|
||||
use newznab\ConsoleTools;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\utility\Utility;
|
||||
use nntmux\Releases;
|
||||
use nntmux\NZB;
|
||||
use nntmux\ReleaseImage;
|
||||
use nntmux\ConsoleTools;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\Category;
|
||||
use newznab\db\Settings;
|
||||
use newznab\Console;
|
||||
use nntmux\Category;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\Console;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\Games;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\Games;
|
||||
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
//This script will update all records in the movieinfo table
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\ColorCLI;
|
||||
use newznab\Movie;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\Movie;
|
||||
|
||||
$pdo = new Settings();
|
||||
$c = new ColorCLI();
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
//This script will update all records in the movieinfo table where there is no cover
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\Movie;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\Movie;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
//This script will update all records in the xxxinfo table where there is no cover
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\XXX;
|
||||
use newznab\ColorCLI;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\XXX;
|
||||
use nntmux\ColorCLI;
|
||||
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\utility\Utility;
|
||||
|
||||
$pdo = new Settings();
|
||||
$covers = $updated = $deleted = 0;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\utility\Utility;
|
||||
|
||||
$pdo = new Settings();
|
||||
$covers = $updated = $deleted = 0;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\ColorCLI;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\ColorCLI;
|
||||
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\ColorCLI;
|
||||
use newznab\ReleaseRemover;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\ReleaseRemover;
|
||||
// New line for CLI.
|
||||
$n = PHP_EOL;
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\NameFixer;
|
||||
use newznab\NNTP;
|
||||
use newznab\PreDb;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\NameFixer;
|
||||
use nntmux\NNTP;
|
||||
use nntmux\PreDb;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$n = "\n";
|
||||
$pdo = new Settings();
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\Categorize;
|
||||
use newznab\Category;
|
||||
use newznab\ColorCLI;
|
||||
use newznab\ConsoleTools;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\Categorize;
|
||||
use nntmux\Category;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\ConsoleTools;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
/* This script deletes releases that match certain criteria, type php removeCrapReleases.php false for details. */
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\ColorCLI;
|
||||
use newznab\ReleaseRemover;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\ReleaseRemover;
|
||||
|
||||
$cli = new ColorCLI();
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
//
|
||||
// This script is used to test the regular expressions identified
|
||||
// within a newznab database are valid.
|
||||
// within a nntmux database are valid.
|
||||
//
|
||||
// by l2g
|
||||
//
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\Releases;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\Releases;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
|
||||
function handleError($errno, $errstr, $errfile, $errline, array $errcontext)
|
||||
|
||||
@@ -4,7 +4,7 @@ require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR .
|
||||
use ApaiIO\Configuration\GenericConfiguration;
|
||||
use ApaiIO\Operations\Search;
|
||||
use ApaiIO\ApaiIO;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$s = new Settings();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Test the cache server connection.
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\libraries\Cache;
|
||||
use nntmux\libraries\Cache;
|
||||
|
||||
try {
|
||||
$cache = new Cache();
|
||||
|
||||
@@ -3,8 +3,8 @@ require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR .
|
||||
|
||||
// Test if your giantbomb key is working.
|
||||
|
||||
use newznab\ColorCLI;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$giantbombkey = (new Settings())->getSetting('giantbombkey');
|
||||
$cli = new ColorCLI();
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// To troubleshoot what's actually on usenet.
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\Binaries;
|
||||
use newznab\ColorCLI;
|
||||
use newznab\NNTP;
|
||||
use nntmux\Binaries;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\NNTP;
|
||||
|
||||
$cli = new ColorCLI();
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
//
|
||||
// This script is used to test the regular expressions identified
|
||||
// within a newznab database are valid.
|
||||
// within a nntmux database are valid.
|
||||
//
|
||||
// by l2g
|
||||
//
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
function handleError($errno, $errstr, $errfile, $errline, array $errcontext)
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\ColorCLI;
|
||||
use newznab\RottenTomato;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\RottenTomato;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$cli = new ColorCLI();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\processing\tv\TMDB;
|
||||
use nntmux\processing\tv\TMDB;
|
||||
|
||||
$c = new newznab\ColorCLI();
|
||||
$tmdb = new TMDB();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\processing\tv\TraktTv;
|
||||
use nntmux\processing\tv\TraktTv;
|
||||
|
||||
$c = new newznab\ColorCLI();
|
||||
$trakt = new TraktTv();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\processing\tv\TVDB;
|
||||
use nntmux\processing\tv\TVDB;
|
||||
|
||||
$c = new newznab\ColorCLI();
|
||||
$tvdb = new TVDB();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\processing\tv\TVMaze;
|
||||
use nntmux\processing\tv\TVMaze;
|
||||
|
||||
$c = new newznab\ColorCLI();
|
||||
$tvmaze = new TVMaze();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//This Script Verifies your System Time vs Myself Time vs PHP Time
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
$res="";
|
||||
|
||||
$db = new Settings();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
try {
|
||||
// Create the first database class instance (which will initialize the PDO connection)
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
// TODO: bunch of if/elses need converting to switches
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\Categorize;
|
||||
use newznab\ColorCLI;
|
||||
use newznab\ConsoleTools;
|
||||
use newznab\Groups;
|
||||
use newznab\NameFixer;
|
||||
use newznab\ReleaseCleaning;
|
||||
use newznab\ReleaseFiles;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\Categorize;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\ConsoleTools;
|
||||
use nntmux\Groups;
|
||||
use nntmux\NameFixer;
|
||||
use nntmux\ReleaseCleaning;
|
||||
use nntmux\ReleaseFiles;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
/*
|
||||
*
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
require_once dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ if (!isset($argv[1]) || !in_array($argv[1], ['1'])) {
|
||||
}
|
||||
require_once dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
require_once dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?php
//
// Script will dump out all nfos in the system into a folder based on the date posted to usenet ./YYYYMMDD/release.nfo
// Its not very efficient to pull them all out, should really work out which day you need and go from there.
//
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
use newznab\db\Settings;
use newznab\utility\Utility;
$db = new Settings();
$res = $db->queryDirect("select releases.searchname, releases.postdate, uncompress(release_nfos.nfo) as nfo from releases inner join release_nfos on releases.ID = release_nfos.releaseID and release_nfos.nfo is not null order by postdate");
while ($row = $db->getAssocArray($res))
{
$dir = date("Ymd", strtotime($row["postdate"]));
if (!file_exists($dir))
mkdir($dir);
$filename = $dir."/".safeFilename($row["searchname"]).".nfo";
if (!file_exists($filename))
{
$fh = fopen($filename, 'w');
fwrite($fh, Utility::cp437toUTF($row["nfo"]));
fclose($fh);
}
}
|
||||
<?php
//
// Script will dump out all nfos in the system into a folder based on the date posted to usenet ./YYYYMMDD/release.nfo
// Its not very efficient to pull them all out, should really work out which day you need and go from there.
//
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
use nntmux\db\Settings;
use nntmux\utility\Utility;
$db = new Settings();
$res = $db->queryDirect("select releases.searchname, releases.postdate, uncompress(release_nfos.nfo) as nfo from releases inner join release_nfos on releases.ID = release_nfos.releaseID and release_nfos.nfo is not null order by postdate");
while ($row = $db->getAssocArray($res))
{
$dir = date("Ymd", strtotime($row["postdate"]));
if (!file_exists($dir))
mkdir($dir);
$filename = $dir."/".safeFilename($row["searchname"]).".nfo";
if (!file_exists($filename))
{
$fh = fopen($filename, 'w');
fwrite($fh, Utility::cp437toUTF($row["nfo"]));
fclose($fh);
}
}
|
||||
@@ -8,8 +8,8 @@ Author: lordgnu <lordgnu@me.com>
|
||||
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\NZB;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\NZB;
|
||||
|
||||
$pdo = new Settings;
|
||||
$nzb = new NZB;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\NZBExport;
|
||||
use nntmux\NZBExport;
|
||||
|
||||
$n = PHP_EOL;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\NZBImport;
|
||||
use nntmux\NZBImport;
|
||||
|
||||
$n = PHP_EOL;
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\Movie;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\Movie;
|
||||
|
||||
$db = new Settings();
|
||||
$movie = new Movie(['Echo' => true, 'Settings' => $pdo]);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\RottenTomato;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\RottenTomato;
|
||||
|
||||
$s = new Settings();
|
||||
$rtkey = $s->getSetting('rottentomatokey');
|
||||
|
||||
@@ -66,10 +66,10 @@
|
||||
//
|
||||
// server
|
||||
// -/ code: This is taken from the users local database `site` table. It is
|
||||
// the `code` the user configured their newznab server as.
|
||||
// the `code` the user configured their nntmux server as.
|
||||
//
|
||||
// -/ title: This is also taken from the users local database `site` table. It
|
||||
// is the the `title` the user configured their newznab server as.
|
||||
// is the the `title` the user configured their nntmux server as.
|
||||
//
|
||||
// postdate_utc: This is the current time measured in the number of seconds since
|
||||
// the Unix Epoch (January 1 1970 00:00:00 GMT). This represents
|
||||
@@ -174,7 +174,7 @@ SHARING
|
||||
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\SpotNab;
|
||||
use nntmux\SpotNab;
|
||||
|
||||
// Subject Lines will always be a hash key that helps scanning identify whether
|
||||
// or not the contents are valid or not. the hash key contains is built
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\Releases;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\Releases;
|
||||
|
||||
$db = new Settings();
|
||||
$r = new Releases();
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
//This script will rerun all releases against Category.php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\Categorize;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\Categorize;
|
||||
|
||||
$db = new Settings();
|
||||
$category = new Categorize();
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\NNTP;
|
||||
use newznab\Backfill;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\NNTP;
|
||||
use nntmux\Backfill;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\Backfill;
|
||||
use nntmux\Backfill;
|
||||
|
||||
$time = 0;
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\ConsoleTools;
|
||||
use newznab\NameFixer;
|
||||
use newznab\db\Settings;
|
||||
use nntmux\ConsoleTools;
|
||||
use nntmux\NameFixer;
|
||||
use nntmux\db\Settings;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
use newznab\Releases;
|
||||
use newznab\ReleaseImage;
|
||||
use newznab\Categorize;
|
||||
use newznab\NZB;
|
||||
use newznab\ReleaseRegex;
|
||||
use newznab\NZBInfo;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\utility\Utility;
|
||||
use nntmux\Releases;
|
||||
use nntmux\ReleaseImage;
|
||||
use nntmux\Categorize;
|
||||
use nntmux\NZB;
|
||||
use nntmux\ReleaseRegex;
|
||||
use nntmux\NZBInfo;
|
||||
|
||||
$releases = new Releases();
|
||||
$releaseImage = new ReleaseImage();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\ColorCLI;
|
||||
use newznab\NameFixer;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\NameFixer;
|
||||
|
||||
$cli = new ColorCLI();
|
||||
|
||||
|
||||
@@ -6,16 +6,16 @@ if (!isset($argv[1])) {
|
||||
|
||||
require_once realpath(dirname(dirname(dirname(dirname(dirname(__DIR__))))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use \newznab\db\Settings;
|
||||
use \newznab\processing\PostProcess;
|
||||
use \newznab\processing\ProcessReleases;
|
||||
use \newznab\processing\post\ProcessAdditional;
|
||||
use newznab\Backfill;
|
||||
use newznab\Binaries;
|
||||
use newznab\Groups;
|
||||
use newznab\Nfo;
|
||||
use newznab\NNTP;
|
||||
use newznab\RequestIDLocal;
|
||||
use \nntmux\db\Settings;
|
||||
use \nntmux\processing\PostProcess;
|
||||
use \nntmux\processing\ProcessReleases;
|
||||
use \nntmux\processing\post\ProcessAdditional;
|
||||
use nntmux\Backfill;
|
||||
use nntmux\Binaries;
|
||||
use nntmux\Groups;
|
||||
use nntmux\Nfo;
|
||||
use nntmux\NNTP;
|
||||
use nntmux\RequestIDLocal;
|
||||
|
||||
// Are we coming from python or php ? $options[0] => (string): python|php
|
||||
// The type of process we want to do: $options[1] => (string): releases
|
||||
@@ -313,7 +313,7 @@ function charCheck($char)
|
||||
/**
|
||||
* Check if the group should be processed.
|
||||
*
|
||||
* @param \newznab\db\Settings $pdo
|
||||
* @param \nntmux\db\Settings $pdo
|
||||
* @param int $groupID
|
||||
*/
|
||||
function collectionCheck(&$pdo, $groupID)
|
||||
@@ -326,7 +326,7 @@ function collectionCheck(&$pdo, $groupID)
|
||||
/**
|
||||
* Connect to usenet, return NNTP object.
|
||||
*
|
||||
* @param \newznab\db\Settings $pdo
|
||||
* @param \nntmux\db\Settings $pdo
|
||||
* @param bool $alternate Use alternate NNTP provider.
|
||||
*
|
||||
* @return NNTP
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
declare(ticks=1);
|
||||
require('.do_not_run/require.php');
|
||||
use newznab\libraries\Forking;
|
||||
use nntmux\libraries\Forking;
|
||||
// Check if argument 1 is numeric, which is to limit article count.
|
||||
(new Forking())->processWorkType(
|
||||
'backfill', (isset($argv[1]) && is_numeric($argv[1]) && $argv[1] > 0 ? array(0 => $argv[1]) : array(0 => false))
|
||||
|
||||
@@ -6,5 +6,5 @@ if (!isset($argv[1]) || !is_numeric($argv[1])) {
|
||||
}
|
||||
declare(ticks=1);
|
||||
require('.do_not_run/require.php');
|
||||
use newznab\libraries\Forking;
|
||||
use nntmux\libraries\Forking;
|
||||
(new Forking())->processWorkType('binaries', array(0 => $argv[1]));
|
||||
@@ -9,7 +9,7 @@ if (!isset($argv[1]) || !in_array($argv[1], ['standard', 'predbft'])) {
|
||||
|
||||
require('.do_not_run/require.php');
|
||||
|
||||
use newznab\libraries\Forking;
|
||||
use nntmux\libraries\Forking;
|
||||
|
||||
declare(ticks = 1);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
declare(ticks=1);
|
||||
require('.do_not_run/require.php');
|
||||
|
||||
use newznab\libraries\ForkingImportNZB;
|
||||
use nntmux\libraries\ForkingImportNZB;
|
||||
|
||||
if (!isset($argv[1]) || !is_dir($argv[1])) {
|
||||
exit(
|
||||
|
||||
@@ -16,6 +16,6 @@ if (!isset($argv[1]) || !in_array($argv[1], ['ama', 'add', 'mov', 'nfo', 'sha',
|
||||
declare(ticks=1);
|
||||
require('.do_not_run/require.php');
|
||||
|
||||
use newznab\libraries\Forking;
|
||||
use nntmux\libraries\Forking;
|
||||
|
||||
(new Forking())->processWorkType('postProcess_' . $argv[1], (isset($argv[2]) && $argv[2] === 'true' ? [0 => true] : []));
|
||||
@@ -2,6 +2,6 @@
|
||||
declare(ticks=1);
|
||||
require('.do_not_run/require.php');
|
||||
|
||||
use newznab\libraries\Forking;
|
||||
use nntmux\libraries\Forking;
|
||||
|
||||
(new Forking())->processWorkType('releases');
|
||||
@@ -2,6 +2,6 @@
|
||||
declare(ticks=1);
|
||||
require('.do_not_run/require.php');
|
||||
|
||||
use \newznab\libraries\Forking;
|
||||
use \nntmux\libraries\Forking;
|
||||
|
||||
(new Forking())->processWorkType('request_id');
|
||||
@@ -10,6 +10,6 @@ if (!isset($argv[1]) || !in_array($argv[1], ['backfill', 'binaries'])) {
|
||||
declare(ticks=1);
|
||||
require('.do_not_run/require.php');
|
||||
|
||||
use \newznab\libraries\Forking;
|
||||
use \nntmux\libraries\Forking;
|
||||
|
||||
(new Forking())->processWorkType('safe_' . $argv[1]);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
declare(ticks=1);
|
||||
require('.do_not_run/require.php');
|
||||
|
||||
use \newznab\libraries\Forking;
|
||||
use \nntmux\libraries\Forking;
|
||||
|
||||
// This is the same as the python update_threaded.php
|
||||
(new Forking())->processWorkType('update_per_group');
|
||||
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(dirname(dirname(__DIR__))))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\processing\PostProcess;
|
||||
use newznab\ColorCLI;
|
||||
use newznab\NameFixer;
|
||||
use newznab\NNTP;
|
||||
use newznab\NZBContents;
|
||||
use newznab\Nfo;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\processing\PostProcess;
|
||||
use nntmux\ColorCLI;
|
||||
use nntmux\NameFixer;
|
||||
use nntmux\NNTP;
|
||||
use nntmux\NZBContents;
|
||||
use nntmux\Nfo;
|
||||
|
||||
$c = new ColorCLI();
|
||||
if (!isset($argv[1])) {
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<?php
|
||||
require_once realpath(dirname(dirname(dirname(dirname(dirname(__DIR__))))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\Category;
|
||||
use newznab\MiscSorter;
|
||||
use newznab\NameFixer;
|
||||
use newznab\Nfo;
|
||||
use newznab\NNTP;
|
||||
use newznab\NZB;
|
||||
use newznab\NZBContents;
|
||||
use newznab\db\Settings;
|
||||
use newznab\processing\PostProcess;
|
||||
use nntmux\Category;
|
||||
use nntmux\MiscSorter;
|
||||
use nntmux\NameFixer;
|
||||
use nntmux\Nfo;
|
||||
use nntmux\NNTP;
|
||||
use nntmux\NZB;
|
||||
use nntmux\NZBContents;
|
||||
use nntmux\db\Settings;
|
||||
use nntmux\processing\PostProcess;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user