Rename nntmux namespace and folder to Blacklight

This commit is contained in:
DariusIII
2018-02-14 23:08:17 +01:00
parent dafbf4e3e8
commit 314e601e44
272 changed files with 1037 additions and 693 deletions
+5 -5
View File
@@ -16,10 +16,10 @@ test.php
/.idea/
/vendor/*
/app/resources/tmp/*
/nntmux/config/settings.php
/nntmux/config/ircscraper_settings.php
/nntmux/config/ircscraper.php
/nntmux/config/opensssl.php
/Blacklight/config/settings.php
/Blacklight/config/ircscraper_settings.php
/Blacklight/config/ircscraper.php
/Blacklight/config/opensssl.php
/libraries/*
/nbproject/
@@ -27,5 +27,5 @@ test.php
/resources/covers/*
/resources/nzb/*
/resources/tmp/*
/templates_c/*
/resources/smarty/templates_c/*
/public/themes/shared/assets
+3 -3
View File
@@ -1,14 +1,14 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Category;
class AniDB
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -1,15 +1,15 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Group;
use App\Models\Settings;
class Backfill
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -19,7 +19,7 @@ class Backfill
protected $_binaries;
/**
* @var \nntmux\NNTP
* @var \Blacklight\NNTP
*/
protected $_nntp;
/**
@@ -1,15 +1,15 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Group;
use App\Models\Settings;
use Illuminate\Support\Carbon;
use App\Models\BinaryBlacklist;
use App\Models\MultigroupPoster;
use Illuminate\Support\Facades\Cache;
use nntmux\processing\ProcessReleasesMultiGroup;
use Blacklight\processing\ProcessReleasesMultiGroup;
/**
* Class Binaries.
@@ -42,17 +42,17 @@ class Binaries
public $messageBuffer;
/**
* @var \nntmux\ColorCLI
* @var \Blacklight\ColorCLI
*/
protected $_colorCLI;
/**
* @var \nntmux\CollectionsCleaning
* @var \Blacklight\CollectionsCleaning
*/
protected $_collectionsCleaning;
/**
* @var \nntmux\NNTP
* @var \Blacklight\NNTP
*/
protected $_nntp;
@@ -71,7 +71,7 @@ class Binaries
protected $_partRepair;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
protected $_pdo;
+3 -3
View File
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use ApaiIO\ApaiIO;
use GuzzleHttp\Client;
use App\Models\Release;
@@ -19,7 +19,7 @@ use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject;
class Books
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
use app\models\Settings;
use ReCaptcha\ReCaptcha;
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
use App\Models\Group;
use App\Models\Category;
@@ -42,7 +42,7 @@ class Categorize extends Category
public $groupid;
/**
* @var \nntmux\Regexes
* @var \Blacklight\Regexes
*/
public $regexes;
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
/**
* Cleans names for collections/imports/namefixer.
@@ -74,12 +74,12 @@ class CollectionsCleaning
public $subject = '';
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
/**
* @var \nntmux\Regexes
* @var \Blacklight\Regexes
*/
protected $_regexes;
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
class ColorCLI
{
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use ApaiIO\ApaiIO;
use GuzzleHttp\Client;
use App\Models\Release;
@@ -25,7 +25,7 @@ class Console
public const CONS_NTFND = -2;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
/**
* Class ConsoleTools.
@@ -8,7 +8,7 @@ namespace nntmux;
class ConsoleTools
{
/**
* @var \nntmux\ColorCLI
* @var \Blacklight\ColorCLI
*/
public $cli;
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\User;
use App\Models\Content;
@@ -13,7 +13,7 @@ class Contents
public const TYPEINDEX = 3;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -19,7 +19,7 @@
* @copyright 2016 newznab-tmux
*/
namespace nntmux;
namespace Blacklight;
use GuzzleHttp\Client;
+3 -3
View File
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Genre;
use App\Models\Category;
use App\Models\Settings;
@@ -47,7 +47,7 @@ class Games
public $maxHitRequest;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
+3 -3
View File
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Genre;
use App\Models\Category;
use Illuminate\Support\Carbon;
@@ -18,7 +18,7 @@ class Genres
public const STATUS_DISABLED = 1;
/**
* @var \nntmux\db\DB;
* @var \Blacklight\db\DB;
*/
public $pdo;
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
/**
* Basic IRC client for fetching IRCScraper.
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Predb;
/**
@@ -47,7 +47,7 @@ class IRCScraper extends IRCClient
protected $_oldPre;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
protected $_pdo;
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use ApaiIO\ApaiIO;
use App\Models\Settings;
use ApaiIO\Operations\Lookup;
@@ -23,17 +23,17 @@ class MiscSorter
private $echooutput;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
private $pdo;
/**
* @var \nntmux\Movie
* @var \Blacklight\Movie
*/
private $movie;
/**
* @var \nntmux\Music
* @var \Blacklight\Music
*/
private $music;
@@ -53,7 +53,7 @@ class MiscSorter
public $asstag;
/**
* @var \nntmux\Books
* @var \Blacklight\Books
*/
private $book;
+8 -8
View File
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use Tmdb\ApiToken;
use aharen\OMDbAPI;
use GuzzleHttp\Client;
@@ -10,11 +10,11 @@ use App\Models\Release;
use App\Models\Category;
use App\Models\Settings;
use App\Models\MovieInfo;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use Illuminate\Support\Carbon;
use nntmux\libraries\FanartTV;
use Blacklight\libraries\FanartTV;
use Tmdb\Client as TmdbClient;
use nntmux\processing\tv\TraktTv;
use Blacklight\processing\tv\TraktTv;
use Tmdb\Exception\TmdbApiException;
use Illuminate\Support\Facades\Cache;
use GuzzleHttp\Exception\RequestException;
@@ -25,7 +25,7 @@ use GuzzleHttp\Exception\RequestException;
class Movie
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -93,7 +93,7 @@ class Movie
protected $showPasswords;
/**
* @var \nntmux\ReleaseImage
* @var \Blacklight\ReleaseImage
*/
protected $releaseImage;
@@ -114,7 +114,7 @@ class Movie
protected $lookuplanguage;
/**
* @var \nntmux\libraries\FanartTV
* @var \Blacklight\libraries\FanartTV
*/
public $fanart;
+3 -3
View File
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use ApaiIO\ApaiIO;
use App\Models\Genre;
use GuzzleHttp\Client;
@@ -23,7 +23,7 @@ use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject;
class Music
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
+4 -4
View File
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Settings;
use App\Extensions\util\Yenc;
@@ -14,7 +14,7 @@ use App\Extensions\util\Yenc;
class NNTP extends \Net_NNTP_Client
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -24,7 +24,7 @@ class NNTP extends \Net_NNTP_Client
protected $_colorCLI;
/**
* @var \nntmux\Logger
* @var \Blacklight\Logger
*/
protected $_debugging;
+4 -4
View File
@@ -1,10 +1,10 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Settings;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use App\Extensions\util\Versions;
/**
@@ -43,7 +43,7 @@ class NZB
protected $groupID;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -1,12 +1,12 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Release;
use App\Models\Settings;
use nntmux\utility\Utility;
use nntmux\processing\PostProcess;
use Blacklight\utility\Utility;
use Blacklight\processing\PostProcess;
/**
* Gets information contained within the NZB.
@@ -16,27 +16,27 @@ use nntmux\processing\PostProcess;
class NZBContents
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
/**
* @var \nntmux\NNTP
* @var \Blacklight\NNTP
*/
protected $nntp;
/**
* @var \nntmux\Nfo
* @var \Blacklight\Nfo
*/
protected $nfo;
/**
* @var \nntmux\processing\PostProcess
* @var \Blacklight\processing\PostProcess
*/
protected $pp;
/**
* @var \nntmux\NZB
* @var \Blacklight\NZB
*/
protected $nzb;
@@ -64,7 +64,7 @@ class NZBContents
* 'NNTP' => NNTP ; Class NNTP.
* 'Nfo' => Nfo ; Class Nfo.
* 'NZB' => NZB ; Class NZB.
* 'Settings' => DB ; Class nntmux\db\DB.
* 'Settings' => DB ; Class Blacklight\db\DB.
* 'PostProcess' => PostProcess ; Class PostProcess.
* )
*
@@ -1,9 +1,9 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use nntmux\utility\Utility;
use Blacklight\db\DB;
use Blacklight\utility\Utility;
/**
* Export NZB's to a folder.
@@ -23,7 +23,7 @@ class NZBExport
protected $retVal;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
protected $pdo;
+5 -5
View File
@@ -1,11 +1,11 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use GuzzleHttp\Client;
use App\Models\Release;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use GuzzleHttp\Psr7\Request;
/**
@@ -58,12 +58,12 @@ class NZBGet
protected $serverurl = '';
/**
* @var \nntmux\Releases
* @var \Blacklight\Releases
*/
protected $releases;
/**
* @var \nntmux\NZB
* @var \Blacklight\NZB
*/
protected $nzb;
@@ -1,12 +1,12 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Group;
use App\Models\Release;
use App\Models\Settings;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
/**
* Import NZB files into the database.
@@ -15,17 +15,17 @@ use nntmux\utility\Utility;
class NZBImport
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
protected $pdo;
/**
* @var \nntmux\Binaries
* @var \Blacklight\Binaries
*/
protected $binaries;
/**
* @var \nntmux\ReleaseCleaning
* @var \Blacklight\ReleaseCleaning
*/
protected $releaseCleaner;
@@ -40,7 +40,7 @@ class NZBImport
protected $crossPostt;
/**
* @var \nntmux\Categorize
* @var \Blacklight\Categorize
*/
protected $category;
@@ -74,7 +74,7 @@ class NZBImport
public $echoCLI;
/**
* @var \nntmux\NZB
* @var \Blacklight\NZB
*/
public $nzb;
@@ -84,7 +84,7 @@ class NZBImport
protected $nzbGuid;
/**
* @var \nntmux\Releases
* @var \Blacklight\Releases
*/
private $releases;
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
/**
* Class for reading and writing NZB files on the hard disk,
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
use Page;
use App\Models\User;
@@ -1,15 +1,15 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Group;
use App\Models\Predb;
use App\Models\Release;
use App\Models\Category;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use Illuminate\Support\Carbon;
use nntmux\processing\PostProcess;
use Blacklight\processing\PostProcess;
/**
* Class NameFixer.
@@ -118,27 +118,27 @@ class NameFixer
protected $fullall;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
/**
* @var \nntmux\ConsoleTools
* @var \Blacklight\ConsoleTools
*/
public $consoletools;
/**
* @var \nntmux\Categorize
* @var \Blacklight\Categorize
*/
public $category;
/**
* @var \nntmux\utility\Utility
* @var \Blacklight\utility\Utility
*/
public $text;
/**
* @var \nntmux\SphinxSearch
* @var \Blacklight\SphinxSearch
*/
public $sphinx;
+4 -4
View File
@@ -1,15 +1,15 @@
<?php
namespace nntmux;
namespace Blacklight;
use App\Models\Group;
use App\Models\Release;
use App\Models\Settings;
use App\Models\ReleaseNfo;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use dariusiii\rarinfo\SfvInfo;
use dariusiii\rarinfo\Par2Info;
use nntmux\processing\PostProcess;
use Blacklight\processing\PostProcess;
/**
* Class Nfo
@@ -18,7 +18,7 @@ use nntmux\processing\PostProcess;
class Nfo
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Group;
use App\Models\Release;
use App\Models\Category;
@@ -10,7 +10,7 @@ use App\Models\Category;
class Regexes
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Predb;
/**
@@ -59,7 +59,7 @@ class ReleaseCleaning
public $groupName = '';
/**
* @var \nntmux\db\DB|null
* @var \Blacklight\db\DB|null
*/
public $pdo;
@@ -74,7 +74,7 @@ class ReleaseCleaning
public $subject = '';
/**
* @var \nntmux\Regexes
* @var \Blacklight\Regexes
*/
protected $_regexes;
@@ -1,11 +1,11 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\AudioData;
use App\Models\VideoData;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use App\Models\ReleaseUnique;
use App\Models\ReleaseSubtitle;
use App\Models\ReleaseExtraFull;
@@ -13,7 +13,7 @@ use App\Models\ReleaseExtraFull;
class ReleaseExtra
{
/**
* @var \nntmux\db\DB|null
* @var \Blacklight\db\DB|null
*/
public $pdo;
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
use Intervention\Image\ImageManager;
use Illuminate\Support\Facades\Storage;
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Category;
/**
@@ -30,7 +30,7 @@ class ReleaseRemover
protected $browser;
/**
* @var \nntmux\ConsoleTools
* @var \Blacklight\ConsoleTools
*/
protected $consoleTools;
@@ -74,7 +74,7 @@ class ReleaseRemover
protected $method = '';
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
protected $pdo;
@@ -86,7 +86,7 @@ class ReleaseRemover
protected $query;
/**
* @var \nntmux\Releases
* @var \Blacklight\Releases
*/
protected $releases;
@@ -105,12 +105,12 @@ class ReleaseRemover
protected $timeStart;
/**
* @var \nntmux\NZB
* @var \Blacklight\NZB
*/
private $nzb;
/**
* @var \nntmux\ReleaseImage
* @var \Blacklight\ReleaseImage
*/
private $releaseImage;
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
class ReleaseSearch
{
@@ -35,7 +35,7 @@ class ReleaseSearch
/**
* ReleaseSearch constructor.
*
* @param \nntmux\db\DB $settings
* @param \Blacklight\db\DB $settings
*
* @throws \Exception
*/
@@ -1,13 +1,13 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Group;
use App\Models\Release;
use App\Models\Category;
use App\Models\Settings;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Cache;
@@ -23,17 +23,17 @@ class Releases
public const PASSWD_RAR = 10; // Definitely passworded.
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
/**
* @var \nntmux\ReleaseSearch
* @var \Blacklight\ReleaseSearch
*/
public $releaseSearch;
/**
* @var \nntmux\SphinxSearch
* @var \Blacklight\SphinxSearch
*/
public $sphinxSearch;
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
use App\Models\User;
use GuzzleHttp\Client;
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
/**
* Class Sharing.
@@ -44,12 +44,12 @@ class Sharing
*/
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
protected $pdo;
/**
* @var \nntmux\NNTP
* @var \Blacklight\NNTP
*/
protected $nntp;
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
class Sitemap
{
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
class Sites
{
@@ -1,6 +1,6 @@
<?php
namespace nntmux;
namespace Blacklight;
use App\Models\Release;
use Foolz\SphinxQL\Helper;
+3 -3
View File
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Settings;
use App\Models\SteamApp;
use b3rs3rk\steamfront\Main;
@@ -22,7 +22,7 @@ class Steam
protected $steamGameID;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
protected $pdo;
+3 -3
View File
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Category;
use App\Extensions\util\Versions;
use App\Models\Tmux as TmuxModel;
@@ -13,7 +13,7 @@ use App\Models\Tmux as TmuxModel;
class Tmux
{
/**
* @var \nntmux\db\DB|null
* @var \Blacklight\db\DB|null
*/
public $pdo;
@@ -1,9 +1,9 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use nntmux\utility\Utility;
use Blacklight\db\DB;
use Blacklight\utility\Utility;
/**
* Tmux output functions for printing monitor data.
@@ -35,7 +35,7 @@ class TmuxOutput extends Tmux
/**
* TmuxOutput constructor.
*
* @param \nntmux\db\DB|null $pdo
* @param \Blacklight\db\DB|null $pdo
*
* @throws \Exception
*/
@@ -1,8 +1,8 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Settings;
/**
@@ -15,7 +15,7 @@ class TmuxRun extends Tmux
protected $_dateFormat;
/**
* @param \nntmux\db\DB $pdo
* @param \Blacklight\db\DB $pdo
*
* @throws \Exception
*/
+9 -9
View File
@@ -1,20 +1,20 @@
<?php
namespace nntmux;
namespace Blacklight;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Genre;
use App\Models\Release;
use App\Models\XxxInfo;
use App\Models\Category;
use App\Models\Settings;
use Illuminate\Support\Carbon;
use nntmux\processing\adult\ADE;
use nntmux\processing\adult\ADM;
use nntmux\processing\adult\AEBN;
use nntmux\processing\adult\Popporn;
use Blacklight\processing\adult\ADE;
use Blacklight\processing\adult\ADM;
use Blacklight\processing\adult\AEBN;
use Blacklight\processing\adult\Popporn;
use Illuminate\Support\Facades\Cache;
use nntmux\processing\adult\Hotmovies;
use Blacklight\processing\adult\Hotmovies;
/**
* Class XXX.
@@ -22,7 +22,7 @@ use nntmux\processing\adult\Hotmovies;
class XXX
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -51,7 +51,7 @@ class XXX
protected $imgSavePath;
/**
* @var \nntmux\ReleaseImage
* @var \Blacklight\ReleaseImage
*/
protected $releaseImage;
@@ -17,7 +17,7 @@
* @copyright 2017 nZEDb
*/
namespace nntmux\build;
namespace Blacklight\build;
use Composer\Script\Event;
use Illuminate\Foundation\Application;
@@ -19,7 +19,7 @@
* @copyright 2015 NN
*/
namespace nntmux\config;
namespace Blacklight\config;
class Configure
{
@@ -15,7 +15,7 @@
* is out of date, you will need to update it and change the version number.
*
* @note Developers: When updating settings.example.php, up this version
* and $current_settings_file_version in nntmux\config\Configure.php
* and $current_settings_file_version in Blacklight\config\Configure.php
* @version 7
*/
define('NN_SETTINGS_FILE_VERSION', 8);
+343
View File
@@ -0,0 +1,343 @@
<?php
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////// Copy this file to settings.php and edit the options. //////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// Scroll down to the bottom for a change log. //////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**********************************************************************************************************************/
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////// MISC //////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* When we update settings.example.php, we will raise this version, you will get a message saying your settings.php
* is out of date, you will need to update it and change the version number.
*
* @note Developers: When updating settings.example.php, up this version
* and $current_settings_file_version in nntmux\config\Configure.php
* @version 7
*/
define('NN_SETTINGS_FILE_VERSION', 8);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////// Web Settings //////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* How many releases to show per page in list view.
*
* @default '50'
*/
define('ITEMS_PER_PAGE', '50');
/*
* How many releases to show per page in cover view.
*
* @default '20'
*/
define('ITEMS_PER_COVER_PAGE', '20');
/*
* How many releases maximum to display in total on browse/search/etc.
* If you have ITEMS_PER_PAGE set to 50, and NN_MAX_PAGER_RESULTS set to 125000, you would get a maximum of
* 2,500 pages of results in searches/browse.
*
* @note This setting can speed up browsing releases tremendously if you have millions of releases and you keep it
* a relatively low value.
*
* @default '125000'
*/
define('NN_MAX_PAGER_RESULTS', '125000');
/*
* Whether to check if a person is trying to send too many requests in a given amount of time,
* lock out the person of the site for a amount of time.
*
* @default false
*/
define('NN_FLOOD_CHECK', false);
/*
* How many seconds should the person be locked out of the site.
*
* @default 5
*/
define('NN_FLOOD_WAIT_TIME', 5);
/*
* How many requests in a second can a person send to the site max before being locked out for
* NN_FLOOD_WAIT_TIME seconds.
*
* @default 5
*/
define('NN_FLOOD_MAX_REQUESTS_PER_SECOND', 5);
/*
* The type of search system to use on the site.
*
* 0 = The default system, which uses fulltext indexing (very fast but search results can be unexpected).
* 1 = The old search system from newznab classic (much slower but produces better search results).
* 2 = Search using sphinx real time index, see misc/sphinxsearch/README.md for installation details.
*
* @default 0
*/
define('NN_RELEASE_SEARCH_TYPE', 2);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////// Sphinx Settings ////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* This is the hostname to use when connecting to the SphinxQL server,
*
* @note Using localhost / 127.0.0.1 has caused me issues and only 0 worked on my local server.
* @note See misc/sphinxsearch/README.md for installation details.
* @default '0'
*/
define('NN_SPHINXQL_HOST_NAME', '0');
/*
* This is the port to the SphinxQL server.
*
* @default 9306
*/
define('NN_SPHINXQL_PORT', 9306);
/*
* This is the (optional) location to the SphinxQL server socket file, if you set the "listen" setting to a sock file.
*
* @default ''
*/
define('NN_SPHINXQL_SOCK_FILE', '');
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////// CLI Settings //////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Display text to console(terminal) output.
*
* @default true
*/
define('NN_ECHOCLI', true);
/*
* Rename releases using PAR2 files (if they match on PRE titles)?
*
* @default true
*/
define('NN_RENAME_PAR2', true);
/*
* Rename music releases using media info from the MP3/FLAC/etc tags (names are created using info found in the tags)?
*
* @default true
*/
define('NN_RENAME_MUSIC_MEDIAINFO', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////// Cache Settings /////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Type of cache server(s) to use:
* 0 - disabled ; No cache server(s) will be used.
* 1 - memcached ; Memcached server(s) will be used for caching.
* 2 - redis ; Redis server(s) will be used for caching.
* 3 - apc/apcu ; APC or APCu will be used for caching.
*
* @see https://github.com/NN/NN_Misc/blob/master/Guides/Various/Cache/Guide.md
* @note Memcahed: The Memcached PHP extension must be installed.
* @note Redis: We use the Redis PHP extension by nicolasff. https://github.com/nicolasff/phpredis
* @note APC: The APC or APCu PHP extension must be installed.
* @note APC: Ignore these settings: NN_CACHE_HOSTS / NN_CACHE_SOCKET_FILE / NN_CACHE_TIMEOUT
* @default 0
* @version 3
*/
define('NN_CACHE_TYPE', 0);
/*
* List of redis or memcached servers to connect to. Separate them by comma.
* Host: (string) Address for the cache server. '127.0.0.1' for a local server.
* Port: (integer) Default for memcached is 11211, Default for redis is 6379
* Weight: (integer) On redis, this is unused, set it to 0.
* On memcached if you have 1 memcached server, you set this to 100.
* If you have more than 1 memcached server, see the memcached documentation for more info:
* http://php.net/manual/en/memcached.addserver.php
*/
define('NN_CACHE_HOSTS', serialize(
[
'Server1' => [
'host' => '127.0.0.1',
'port' => 11211,
'weight' => 0,
],
]
));
/*
* Optional path to unix socket file, leave '' if to not use.
* If using a unix socket file, the server list is overridden.
* This should be faster than using the host/port if your cache server is local.
*
* @example '/var/run/redis/redis.sock'
* @note By default, redis and memcached do not have a socket file, you must configure them.
* @note Read and write access is required to the socket file.
* @default ''
*/
define('NN_CACHE_SOCKET_FILE', '');
/*
* Timeout for connecting to cache server(s).
*
* @default 10
*/
define('NN_CACHE_TIMEOUT', 10);
/*
* Memcached allows to compress the data, saving RAM at the expense of CPU time.
*
* @note Does nothing on redis.
* @default false
*/
define('NN_CACHE_COMPRESSION', false);
/*
* Serialization is a way of converting data in PHP into strings of text which can be stored on the cache server.
*
* 0 - Use the PHP serializer. Recommended for most people.
* 1 - [Requires igbinary] Use igbinary serializer which is faster and uses less memory, works
* on Memcached / Redis / APC, read the notes below.
* 2 - [Redis Only] Use no serializer.
*
* @note igbinary must be compiled and enabled in php.ini
* @note APC/APCu: This setting is ignored, set this in php.ini with apc.serializer
* @note Memcached/Redis must be compiled with igbinary support as well to use igbinary.
* @note Read the igbinary page how to compile / enable.
* @see https://github.com/phadej/igbinary
* @default 0
* @version 3
*/
define('NN_CACHE_SERIALIZER', 0);
/*
* Amount of time in seconds to expire data from the cache server.
* The developers of NN decide what should be set as short/medium/long, depending on the type of data.
*
* @defaults 300/600/900
*/
define('NN_CACHE_EXPIRY_SHORT', 300);
define('NN_CACHE_EXPIRY_MEDIUM', 600);
define('NN_CACHE_EXPIRY_LONG', 900);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////// SQL Settings //////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Strip white space (space, carriage return, new line, tab, etc) from queries before sending to MySQL.
* This is useful if you use the MySQL slow query log.
*
* @note This slows down query processing, leave it false unless you turn on the MySQL slow query log.
* @default false
*/
define('NN_QUERY_STRIP_WHITESPACE', false);
/*
* Use transactions when doing certain SQL jobs.
* This has advantages and disadvantages.
* If there's a problem during a transaction, MySQL can revert the row inserts which is beneficial.
* Transactions can cause deadlocks however if you are trying to insert into the same table from another process.
*
* @note If all your tables are MyISAM you can set this to false, as MyISAM does not support transactions.
* @default true
*/
define('NN_USE_SQL_TRANSACTIONS', true);
/*
* Allows the use of LOW_PRIORITY in certain DELETE queries.
* This prevents table locks by deleting only when no SELECT queries are active on the table.
* This works on MyISAM/ARIA, not INNODB.
*
* @note Does not cause any errors or warnings if enabled on INNODB.
* @link https://dev.mysql.com/doc/refman/5.7/en/delete.html
* @default false
* @version 1
*/
define('NN_SQL_DELETE_LOW_PRIORITY', false);
/*
* Allows the use QUICK in certain DELETE queries.
* This makes DELETE queries faster on MyISAM/ARIA tables by not merging index leaves.
* Only supported on MyISAM/ARIA
*
* @note Does not cause any errors or warnings if enabled on INNODB.
* @link https://dev.mysql.com/doc/refman/5.7/en/delete.html
* @default false
* @version 1
*/
define('NN_SQL_DELETE_QUICK', false);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////// PHP Xdebug Settings //////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (extension_loaded('xdebug')) {
/*
* Display colors on xdebug CLI output?
* 0 - off, 1 - on only if on a TTY with ansi support, 2 - on regardless of TTY or ansi support.
* @default 0
* @version 4
*/
ini_set('xdebug.cli_color', '0');
/*
* Replace PHP's var_dump with xdebug's own?
* @default '1'
* @version 4
*/
ini_set('xdebug.overload_var_dump', '1');
/*
* How many items in a array or object to display on var_dump.
* @note Set to '-1' for no limit.
* @default '128'
* @version 4
*/
ini_set('xdebug.var_display_max_children', '128');
/*
* Maximum string length on var_dump. (anything over is truncated)
* @note Set to '-1' for no limit.
* @default '512'
* @version 4
*/
ini_set('xdebug.var_display_max_data', '512');
/*
* How many nested arrays / objects deep to display on var_dump.
* @note Set to '-1' for no limit.
* @note Maximum value is '1023'
* @default '3'
* @version 4
*/
ini_set('xdebug.var_display_max_depth', '3');
}
/***********************************************************************************************************************
* ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
* //////////////////////////////////////////////// Change log ////////////////////////////////////////////////////////////
* ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
*
* 2017-12-21 v7 Remove custom logging settings, Laravel is handling errors now
* 2017-10-11 v6 Remove settings for PHP web/CLI SAPI's as these are now handled by Laravel
* 2015-08-26 v4 Add settings for PHP web/CLI SAPI's.
* Add settings for Xdebug.
* All new settings start from the "PHP CLI Settings" up to the "Change log", lines ~544 to ~768
*
* 2015-06-11 v3 Add support for APC or APCu extensions for caching data. Search for @version 3 for the changes.
*
* 2015-05-10 v2 Update path to find_password_hash_cost.php in comments. Search for @version 2 for the changes.
*
* 2015-05-03 v1 Track settings.php.example changes.
* Add support for quick and low_priority on MySQL DELETE queries.
* Search for @version 1 in this file to quickly find these additions.
*
* //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
+9 -9
View File
@@ -1,14 +1,14 @@
<?php
namespace nntmux\db;
namespace Blacklight\db;
use nntmux\ColorCLI;
use Blacklight\ColorCLI;
use Ramsey\Uuid\Uuid;
use App\Models\Settings;
use nntmux\ConsoleTools;
use nntmux\libraries\Cache;
use nntmux\utility\Utility;
use nntmux\libraries\CacheException;
use Blacklight\ConsoleTools;
use Blacklight\libraries\Cache;
use Blacklight\utility\Utility;
use Blacklight\libraries\CacheException;
/**
* Class for handling connection to MySQL database using PDO.
@@ -33,7 +33,7 @@ class DB extends \PDO
public $ct;
/**
* @var \nntmux\ColorCLI Instance variable for logging object. Currently only ColorCLI supported,
* @var \Blacklight\ColorCLI Instance variable for logging object. Currently only ColorCLI supported,
* but expanding for full logging with agnostic API planned.
*/
public $log;
@@ -51,7 +51,7 @@ class DB extends \PDO
protected $_debug;
/**
* @var \nntmux\Logger
* @var \Blacklight\Logger
*/
private $debugging;
@@ -76,7 +76,7 @@ class DB extends \PDO
private $opts;
/**
* @var \nntmux\libraries\Cache
* @var \Blacklight\libraries\Cache
*/
private $cacheServer;
@@ -19,19 +19,19 @@
* @copyright 2014 nZEDb
*/
namespace nntmux\db;
namespace Blacklight\db;
use nntmux\ColorCLI;
use nntmux\utility\Git;
use Blacklight\ColorCLI;
use Blacklight\utility\Git;
use App\Models\Settings;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
class DbUpdate
{
public $backedup;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -19,7 +19,7 @@
* @copyright 2014 nZEDb
*/
namespace nntmux\db;
namespace Blacklight\db;
class PreDb extends DB
{
@@ -1,10 +1,10 @@
<?php
namespace nntmux\db\populate;
namespace Blacklight\db\populate;
use nntmux\ColorCLI;
use Blacklight\ColorCLI;
use App\Models\Settings;
use nntmux\ReleaseImage;
use Blacklight\ReleaseImage;
use App\Models\AnidbInfo;
use App\Models\AnidbTitle;
use App\Models\AnidbEpisode;
@@ -19,15 +19,15 @@
* @copyright 2014 nZEDb
*/
namespace nntmux\db\populate;
namespace Blacklight\db\populate;
use nntmux\db\DB;
use Blacklight\db\DB;
use GuzzleHttp\Client;
class PopulateTitles
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -19,12 +19,12 @@
* @copyright 2016 nZEDb
*/
namespace nntmux\http;
namespace Blacklight\http;
use App\Models\Group;
use App\Models\Category;
use App\Models\AudioData;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
/**
* Class API.
@@ -19,12 +19,12 @@
* @copyright 2016 nZEDb
*/
namespace nntmux\http;
namespace Blacklight\http;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Category;
use App\Models\Settings;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use App\Extensions\util\Versions;
/**
@@ -33,7 +33,7 @@ use App\Extensions\util\Versions;
abstract class Capabilities
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -1,9 +1,9 @@
<?php
namespace nntmux\http;
namespace Blacklight\http;
use nntmux\NZB;
use nntmux\Releases;
use Blacklight\NZB;
use Blacklight\Releases;
use App\Models\Category;
/**
@@ -19,10 +19,10 @@
* @copyright 2016 nZEDb
*/
namespace nntmux\http;
namespace Blacklight\http;
use App\Models\Category;
use nntmux\Utility\Utility;
use Blacklight\Utility\Utility;
/**
* Class XMLReturn.
@@ -1,6 +1,6 @@
<?php
namespace nntmux\libraries;
namespace Blacklight\libraries;
/**
* Class Cache.
@@ -43,7 +43,7 @@ class Cache
* @param $data
* @param $expiration
* @return bool
* @throws \nntmux\libraries\CacheException
* @throws \Blacklight\libraries\CacheException
*/
public function set($key, $data, $expiration): bool
{
@@ -66,7 +66,7 @@ class Cache
*
* @param $key
* @return bool|mixed|string
* @throws \nntmux\libraries\CacheException
* @throws \Blacklight\libraries\CacheException
*/
public function get($key)
{
@@ -94,7 +94,7 @@ class Cache
*
* @param $key
* @return bool|string[]
* @throws \nntmux\libraries\CacheException
* @throws \Blacklight\libraries\CacheException
*/
public function delete($key)
{
@@ -115,7 +115,7 @@ class Cache
* Flush all data from the cache server?
*
*
* @throws \nntmux\libraries\CacheException
* @throws \Blacklight\libraries\CacheException
*/
public function flush()
{
@@ -152,7 +152,7 @@ class Cache
*
*
* @return array|bool
* @throws \nntmux\libraries\CacheException
* @throws \Blacklight\libraries\CacheException
*/
public function serverStatistics()
{
@@ -173,7 +173,7 @@ class Cache
/**
* Verify the user's cache settings, try to connect to the cache server.
*
* @throws \nntmux\libraries\CacheException
* @throws \Blacklight\libraries\CacheException
*/
public function __construct()
{
@@ -299,7 +299,7 @@ class Cache
*
*
* @return bool
* @throws \nntmux\libraries\CacheException
* @throws \Blacklight\libraries\CacheException
*/
private function ping()
{
@@ -19,7 +19,7 @@
* @copyright 2015 nZEDb
*/
namespace nntmux\libraries;
namespace Blacklight\libraries;
/**
* Class CacheException.
@@ -12,7 +12,7 @@
* @release <0.0.2>
*/
namespace nntmux\libraries;
namespace Blacklight\libraries;
class FanartTV
{
@@ -1,17 +1,17 @@
<?php
namespace nntmux\libraries;
namespace Blacklight\libraries;
use nntmux\Nfo;
use nntmux\NZB;
use nntmux\NNTP;
use nntmux\db\DB;
use Blacklight\Nfo;
use Blacklight\NZB;
use Blacklight\NNTP;
use Blacklight\db\DB;
use App\Models\Tmux;
use nntmux\ColorCLI;
use Blacklight\ColorCLI;
use App\Models\Release;
use App\Models\Settings;
use Illuminate\Support\Carbon;
use nntmux\processing\PostProcess;
use Blacklight\processing\PostProcess;
/**
* Class Forking.
@@ -28,7 +28,7 @@ class Forking extends \fork_daemon
private const OUTPUT_SERIALLY = 2; // Display child output when child is done.
/**
* @var \nntmux\ColorCLI
* @var \Blacklight\ColorCLI
*/
public $_colorCLI;
@@ -87,7 +87,7 @@ class Forking extends \fork_daemon
private $safeBackfillGroup = '';
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -19,7 +19,7 @@
* @copyright 2015 nZEDb
*/
namespace nntmux\libraries;
namespace Blacklight\libraries;
class ForkingException extends \Exception
{
@@ -1,9 +1,9 @@
<?php
namespace nntmux\libraries;
namespace Blacklight\libraries;
use nntmux\db\DB;
use nntmux\ColorCLI;
use Blacklight\db\DB;
use Blacklight\ColorCLI;
/**
* Class ForkingImportNZB.
@@ -1,6 +1,6 @@
<?php
namespace nntmux\libraries;
namespace Blacklight\libraries;
/*
* Geary PHP API
@@ -1,9 +1,9 @@
<?php
namespace nntmux\libraries;
namespace Blacklight\libraries;
use nntmux\db\DB;
use nntmux\ColorCLI;
use Blacklight\db\DB;
use Blacklight\ColorCLI;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
@@ -34,7 +34,7 @@ class TraktAPI
protected $client;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
protected $pdo;
@@ -1,41 +1,41 @@
<?php
namespace nntmux\processing;
namespace Blacklight\processing;
use nntmux\Nfo;
use nntmux\XXX;
use nntmux\NNTP;
use nntmux\Books;
use nntmux\db\DB;
use nntmux\Games;
use nntmux\Movie;
use nntmux\Music;
use nntmux\Console;
use nntmux\Sharing;
use Blacklight\Nfo;
use Blacklight\XXX;
use Blacklight\NNTP;
use Blacklight\Books;
use Blacklight\db\DB;
use Blacklight\Games;
use Blacklight\Movie;
use Blacklight\Music;
use Blacklight\Console;
use Blacklight\Sharing;
use App\Models\Group;
use nntmux\NameFixer;
use Blacklight\NameFixer;
use App\Models\Release;
use App\Models\Category;
use App\Models\Settings;
use App\Models\ReleaseFile;
use Illuminate\Support\Carbon;
use nntmux\processing\tv\TMDB;
use nntmux\processing\tv\TVDB;
use Blacklight\processing\tv\TMDB;
use Blacklight\processing\tv\TVDB;
use dariusiii\rarinfo\Par2Info;
use nntmux\processing\tv\TVMaze;
use nntmux\processing\post\AniDB;
use nntmux\processing\tv\TraktTv;
use nntmux\processing\post\ProcessAdditional;
use Blacklight\processing\tv\TVMaze;
use Blacklight\processing\post\AniDB;
use Blacklight\processing\tv\TraktTv;
use Blacklight\processing\post\ProcessAdditional;
class PostProcess
{
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
/**
* @var \nntmux\NameFixer
* @var \Blacklight\NameFixer
*/
protected $nameFixer;
@@ -68,7 +68,7 @@ class PostProcess
private $echooutput;
/**
* @var \nntmux\Nfo
* @var \Blacklight\Nfo
*/
private $Nfo;
@@ -1,22 +1,22 @@
<?php
namespace nntmux\processing;
namespace Blacklight\processing;
use nntmux\NZB;
use nntmux\NNTP;
use nntmux\db\DB;
use nntmux\Genres;
use nntmux\ColorCLI;
use nntmux\Releases;
use Blacklight\NZB;
use Blacklight\NNTP;
use Blacklight\db\DB;
use Blacklight\Genres;
use Blacklight\ColorCLI;
use Blacklight\Releases;
use App\Models\Group;
use App\Models\Predb;
use nntmux\Categorize;
use Blacklight\Categorize;
use App\Models\Release;
use App\Models\Category;
use App\Models\Settings;
use nntmux\ConsoleTools;
use nntmux\ReleaseImage;
use nntmux\ReleaseCleaning;
use Blacklight\ConsoleTools;
use Blacklight\ReleaseImage;
use Blacklight\ReleaseCleaning;
use App\Models\ReleaseRegex;
use App\Models\ReleasesGroups;
use App\Models\MultigroupPoster;
@@ -61,32 +61,32 @@ class ProcessReleases
public $echoCLI;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
/**
* @var \nntmux\ConsoleTools
* @var \Blacklight\ConsoleTools
*/
public $consoleTools;
/**
* @var \nntmux\NZB
* @var \Blacklight\NZB
*/
public $nzb;
/**
* @var \nntmux\ReleaseCleaning
* @var \Blacklight\ReleaseCleaning
*/
public $releaseCleaning;
/**
* @var \nntmux\Releases
* @var \Blacklight\Releases
*/
public $releases;
/**
* @var \nntmux\ReleaseImage
* @var \Blacklight\ReleaseImage
*/
public $releaseImage;
@@ -160,7 +160,7 @@ class ProcessReleases
* @param int $categorize
* @param int $postProcess
* @param string $groupName (optional)
* @param \nntmux\NNTP $nntp
* @param \Blacklight\NNTP $nntp
* @param bool $echooutput
*
* @return int
@@ -1,8 +1,8 @@
<?php
namespace nntmux\processing;
namespace Blacklight\processing;
use nntmux\NZBMultiGroup;
use Blacklight\NZBMultiGroup;
use App\Models\MultigroupPoster;
class ProcessReleasesMultiGroup extends ProcessReleases
@@ -19,9 +19,9 @@
* @copyright 2015 nZEDb
*/
namespace nntmux\processing;
namespace Blacklight\processing;
use nntmux\db\DB;
use Blacklight\db\DB;
use App\Models\Video;
use App\Models\TvInfo;
use App\Models\VideoAlias;
@@ -39,7 +39,7 @@ abstract class Videos
protected const TYPE_ANIME = 2; // Type of video is a Anime
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
protected $pdo;
/**
@@ -1,6 +1,6 @@
<?php
namespace nntmux\processing\adult;
namespace Blacklight\processing\adult;
/**
* Class adultdvdempire.
@@ -1,8 +1,8 @@
<?php
namespace nntmux\processing\adult;
namespace Blacklight\processing\adult;
use nntmux\db\DB;
use Blacklight\db\DB;
class ADM extends AdultMovies
{
@@ -1,6 +1,6 @@
<?php
namespace nntmux\processing\adult;
namespace Blacklight\processing\adult;
class AEBN extends AdultMovies
{
@@ -1,6 +1,6 @@
<?php
namespace nntmux\processing\adult;
namespace Blacklight\processing\adult;
abstract class AdultMovies
{
@@ -1,6 +1,6 @@
<?php
namespace nntmux\processing\adult;
namespace Blacklight\processing\adult;
class Hotmovies extends AdultMovies
{
@@ -1,6 +1,6 @@
<?php
namespace nntmux\processing\adult;
namespace Blacklight\processing\adult;
class Popporn extends AdultMovies
{
@@ -1,14 +1,14 @@
<?php
namespace nntmux\processing\post;
namespace Blacklight\processing\post;
use nntmux\NZB;
use nntmux\db\DB;
use nntmux\ColorCLI;
use Blacklight\NZB;
use Blacklight\db\DB;
use Blacklight\ColorCLI;
use App\Models\Category;
use App\Models\Settings;
use App\Models\AnidbEpisode;
use nntmux\db\populate\AniDB as PaDb;
use Blacklight\db\populate\AniDB as PaDb;
class AniDB
{
@@ -28,7 +28,7 @@ class AniDB
public $padb;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -1,24 +1,24 @@
<?php
namespace nntmux\processing\post;
namespace Blacklight\processing\post;
use nntmux\Nfo;
use nntmux\NZB;
use nntmux\NNTP;
use nntmux\db\DB;
use nntmux\ColorCLI;
use nntmux\Releases;
use Blacklight\Nfo;
use Blacklight\NZB;
use Blacklight\NNTP;
use Blacklight\db\DB;
use Blacklight\ColorCLI;
use Blacklight\Releases;
use App\Models\Group;
use nntmux\NameFixer;
use nntmux\Categorize;
use Blacklight\NameFixer;
use Blacklight\Categorize;
use App\Models\Release;
use App\Models\Category;
use App\Models\Settings;
use nntmux\ReleaseExtra;
use nntmux\ReleaseImage;
use nntmux\SphinxSearch;
use Blacklight\ReleaseExtra;
use Blacklight\ReleaseImage;
use Blacklight\SphinxSearch;
use App\Models\ReleaseFile;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use dariusiii\rarinfo\Par2Info;
use dariusiii\rarinfo\ArchiveInfo;
@@ -32,7 +32,7 @@ class ProcessAdditional
public const maxCompressedFilesToCheck = 20;
/**
* @var \nntmux\db\DB
* @var \Blacklight\db\DB
*/
public $pdo;
@@ -60,7 +60,7 @@ class ProcessAdditional
protected $_release;
/**
* @var \nntmux\NZB
* @var \Blacklight\NZB
*/
protected $_nzb;
@@ -161,32 +161,32 @@ class ProcessAdditional
protected $_echoCLI;
/**
* @var \nntmux\NNTP
* @var \Blacklight\NNTP
*/
protected $_nntp;
/**
* @var \nntmux\Categorize
* @var \Blacklight\Categorize
*/
protected $_categorize;
/**
* @var \nntmux\NameFixer
* @var \Blacklight\NameFixer
*/
protected $_nameFixer;
/**
* @var \nntmux\ReleaseExtra
* @var \Blacklight\ReleaseExtra
*/
protected $_releaseExtra;
/**
* @var \nntmux\ReleaseImage
* @var \Blacklight\ReleaseImage
*/
protected $_releaseImage;
/**
* @var \nntmux\Nfo
* @var \Blacklight\Nfo
*/
protected $_nfo;
@@ -507,7 +507,7 @@ class ProcessAdditional
* @param string $groupID
* @param string $guidChar
* @throws \RuntimeException
* @throws \nntmux\processing\post\ProcessAdditionalException
* @throws \Blacklight\processing\post\ProcessAdditionalException
* @throws \Exception
*/
public function start($groupID = '', $guidChar = '')
@@ -541,7 +541,7 @@ class ProcessAdditional
* @param string $groupID
* @throws \RuntimeException
* @throws \Exception
* @throws \nntmux\processing\post\ProcessAdditionalException
* @throws \Blacklight\processing\post\ProcessAdditionalException
*/
protected function _setMainTempPath(&$guidChar, &$groupID = '')
{
@@ -19,7 +19,7 @@
* @copyright 2015 nZEDb
*/
namespace nntmux\processing\post;
namespace Blacklight\processing\post;
class ProcessAdditionalException extends \Exception
{
@@ -1,12 +1,12 @@
<?php
namespace nntmux\processing\tv;
namespace Blacklight\processing\tv;
use Tmdb\Client;
use Tmdb\ApiToken;
use nntmux\ColorCLI;
use Blacklight\ColorCLI;
use App\Models\Settings;
use nntmux\ReleaseImage;
use Blacklight\ReleaseImage;
use Tmdb\Helper\ImageHelper;
use Tmdb\Exception\TmdbApiException;
use Tmdb\Repository\ConfigurationRepository;
@@ -1,6 +1,6 @@
<?php
namespace nntmux\processing\tv;
namespace Blacklight\processing\tv;
use App\Models\Video;
use App\Models\TvInfo;
@@ -8,9 +8,9 @@ use App\Models\Release;
use App\Models\Category;
use App\Models\Settings;
use App\Models\TvEpisode;
use nntmux\utility\Country;
use nntmux\utility\Utility;
use nntmux\processing\Videos;
use Blacklight\utility\Country;
use Blacklight\utility\Utility;
use Blacklight\processing\Videos;
/**
* Class TV -- abstract extension of Videos
@@ -1,9 +1,9 @@
<?php
namespace nntmux\processing\tv;
namespace Blacklight\processing\tv;
use nntmux\ColorCLI;
use nntmux\ReleaseImage;
use Blacklight\ColorCLI;
use Blacklight\ReleaseImage;
use Adrenth\Thetvdb\Client;
use Adrenth\Thetvdb\Exception\UnauthorizedException;
use Adrenth\Thetvdb\Exception\CouldNotLoginException;
@@ -1,9 +1,9 @@
<?php
namespace nntmux\processing\tv;
namespace Blacklight\processing\tv;
use nntmux\ColorCLI;
use nntmux\ReleaseImage;
use Blacklight\ColorCLI;
use Blacklight\ReleaseImage;
use JPinkney\TVMaze\TVMaze as Client;
/**
@@ -1,12 +1,12 @@
<?php
namespace nntmux\processing\tv;
namespace Blacklight\processing\tv;
use nntmux\ColorCLI;
use Blacklight\ColorCLI;
use App\Models\Settings;
use nntmux\ReleaseImage;
use nntmux\utility\Time;
use nntmux\libraries\TraktAPI;
use Blacklight\ReleaseImage;
use Blacklight\utility\Time;
use Blacklight\libraries\TraktAPI;
/**
* Class TraktTv.
@@ -18,7 +18,7 @@ class TraktTv extends TV
private const MATCH_PROBABILITY = 75;
/**
* @var \nntmux\libraries\TraktAPI
* @var \Blacklight\libraries\TraktAPI
*/
public $client;
@@ -19,7 +19,7 @@
* @copyright 2015 nZEDb
*/
namespace nntmux\utility;
namespace Blacklight\utility;
use App\Models\Country as CountryModel;
@@ -19,7 +19,7 @@
* @copyright 2014 nZEDb
*/
namespace nntmux\utility;
namespace Blacklight\utility;
/**
* Class Git - Wrapper for various git operations.
@@ -19,7 +19,7 @@
* @copyright 2015 nZEDb
*/
namespace nntmux\utility;
namespace Blacklight\utility;
use Illuminate\Support\Carbon;
@@ -1,9 +1,9 @@
<?php
namespace nntmux\utility;
namespace Blacklight\utility;
use nntmux\db\DB;
use nntmux\ColorCLI;
use Blacklight\db\DB;
use Blacklight\ColorCLI;
use App\Models\Settings;
use Illuminate\Support\Str;
use App\Extensions\util\Versions;
@@ -1,12 +1,12 @@
<?php
namespace nntmux\utility;
namespace Blacklight\utility;
if (! defined('GIT_PRE_COMMIT')) {
define('GIT_PRE_COMMIT', false);
}
use nntmux\ColorCLI;
use Blacklight\ColorCLI;
class Versions
{
+1
View File
@@ -1,4 +1,5 @@
2018-02-14 DariusIII
* Chg: Rename nntmux namespace and folder to Blacklight
* Fix: Fix echoing of cli messages (most of them)
* Chg: Update echoing of informational messages in update_groups.php
* Chg: Update ColorCLI class
+1 -1
View File
@@ -4,7 +4,7 @@ namespace App\Console\Commands;
use App\Models\Group;
use App\Models\Settings;
use nntmux\SphinxSearch;
use Blacklight\SphinxSearch;
use Illuminate\Support\Carbon;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
+1 -1
View File
@@ -2,7 +2,7 @@
namespace App\Console\Commands;
use nntmux\db\DbUpdate;
use Blacklight\db\DbUpdate;
use App\Extensions\util\Git;
use Illuminate\Console\Command;
use App\Extensions\util\Versions;
+2 -2
View File
@@ -1,8 +1,8 @@
<?php
use nntmux\XXX;
use Blacklight\XXX;
use Colors\Color;
use nntmux\ColorCLI;
use Blacklight\ColorCLI;
use GuzzleHttp\Client;
use GuzzleHttp\Cookie\CookieJar;
use GuzzleHttp\Cookie\SetCookie;
+1 -1
View File
@@ -20,7 +20,7 @@
namespace App\Extensions\util;
use App\Models\Settings;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use Illuminate\Database\Eloquent\Collection;
class Versions extends Collection
@@ -3,7 +3,7 @@
namespace App\Http\Controllers\Auth;
use App\Models\User;
use nntmux\utility\Utility;
use Blacklight\utility\Utility;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Password;
use Illuminate\Support\Facades\Validator;

Some files were not shown because too many files have changed in this diff Show More