mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Move all the config files to newznab/config folder.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
/* 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__) . '/../../www/config.php';
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\db\Settings;
|
||||
use newznab\db\populate\AniDB;
|
||||
|
||||
@@ -7,14 +7,7 @@
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
|
||||
$config = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'www' . DIRECTORY_SEPARATOR .
|
||||
'config.php';
|
||||
|
||||
|
||||
if (!is_file($config)) {
|
||||
exit('Place this script in the testing folder of tmux.' . PHP_EOL);
|
||||
}
|
||||
require_once dirname(__FILE__) . '/../../www/config.php';
|
||||
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
unset($config);
|
||||
|
||||
if (!Utility::isWin()) {
|
||||
|
||||
Reference in New Issue
Block a user