mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Move many scripts out from tmux folder into misc/testing.
This commit is contained in:
+3
-2
@@ -2,14 +2,15 @@
|
||||
/* 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.
|
||||
* 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(dirname(__FILE__) . "/../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\db\populate\AniDB;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
if ($argc > 1 && $argv[1] == true) {
|
||||
(new \PopulateAniDB(['Settings' => $pdo, 'Echo' => true]))->populateTable('full');
|
||||
(new AniDB(['Settings' => $pdo, 'Echo' => true]))->populateTable('full');
|
||||
} else {
|
||||
$pdo->log->doEcho(PHP_EOL . $pdo->log->error(
|
||||
"To execute this script you must provide a boolean argument." . PHP_EOL .
|
||||
+4
-4
@@ -7,14 +7,14 @@
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
|
||||
$config = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR .
|
||||
$config = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'www' . DIRECTORY_SEPARATOR .
|
||||
'config.php';
|
||||
|
||||
|
||||
if (!is_file($config)) {
|
||||
exit('Place this script in the lib/testing folder of tmux.' . PHP_EOL);
|
||||
exit('Place this script in the testing folder of tmux.' . PHP_EOL);
|
||||
}
|
||||
require_once $config;
|
||||
require_once dirname(__FILE__) . '/../../www/config.php';
|
||||
unset($config);
|
||||
|
||||
if (!Utility::isWin()) {
|
||||
@@ -36,7 +36,7 @@ if (!is_writable(NN_RES)) {
|
||||
exit('The (' . NN_RES . ') folder must be writable.' . PHP_EOL);
|
||||
}
|
||||
|
||||
$progress = rw_progress(settings_[]);
|
||||
$progress = rw_progress(settings_array());
|
||||
|
||||
if (!isset($argv[1]) || !is_numeric($argv[1]) && $argv[1] != 'progress' || !isset($argv[2]) ||
|
||||
!in_array($argv[2], ['local', 'remote']) || !isset($argv[3]) ||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
|
||||
passthru('clear');
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
* reason, it will allow the password hash on the account to be changed.
|
||||
* Hopefully that will allow admin access to fix any further problems.
|
||||
*/
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// TODO: bunch of if/elses need converting to switches
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// --------------------------------------------------------------
|
||||
// Scan for releases missing previews on disk
|
||||
// --------------------------------------------------------------
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
//This script will update all records in the consoleinfo table
|
||||
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
//This script will update all records in the gamesinfo table
|
||||
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
//This script will update all records in the movieinfo table
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
//This script will update all records in the movieinfo table where there is no cover
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
//This script will update all records in the xxxinfo table where there is no cover
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
//This script downloads covert art for Tv Shows -- it is intended to be run at interval, generally after the TvRage database is populated
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
// New line for CLI.
|
||||
$n = PHP_EOL;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<?php
|
||||
@@ -5,7 +5,7 @@
|
||||
//
|
||||
// by l2g
|
||||
//
|
||||
require_once dirname(__FILE__) . '/../../www/config.php';
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
|
||||
function handleError($errno, $errstr, $errfile, $errline, array $errcontext)
|
||||
@@ -8,7 +8,7 @@
|
||||
//
|
||||
// by l2g
|
||||
//
|
||||
require_once dirname(__FILE__) . '/../../www/config.php';
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
//
|
||||
// by l2g
|
||||
//
|
||||
require_once dirname(__FILE__) . '/../../www/config.php';
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/../../www/config.php';
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\libraries\ApaiIO\Configuration\GenericConfiguration;
|
||||
use newznab\libraries\ApaiIO\Operations\Search;
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
//This Script Verifies your System Time vs Myself Time vs PHP Time
|
||||
require_once dirname(__FILE__) . '/../../www/config.php';
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
$res="";
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
try {
|
||||
// Create the first database class instance (which will initialize the PDO connection)
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
* @author niel
|
||||
* @copyright 2014 nZEDb
|
||||
*/
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ if (!isset($argv[1]) || !in_array($argv[1], ['1'])) {
|
||||
);
|
||||
}
|
||||
|
||||
require_once(dirname(__FILE__) . "/../../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<?php
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../bin/config.php");
|
||||
require_once dirname(__FILE__) . '/../../www/config.php';
|
||||
|
||||
use newznab\db\Settings;
|
||||
|
||||
Reference in New Issue
Block a user