mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 02:08:57 +00:00
Upgrade nntmux configuration method
This commit is contained in:
@@ -391,7 +391,7 @@ class ProcessAdditional
|
||||
];
|
||||
$options += $defaults;
|
||||
|
||||
$this->_echoCLI = ($options['Echo'] && env('echocli', true) && (strtolower(PHP_SAPI) === 'cli'));
|
||||
$this->_echoCLI = ($options['Echo'] && config('nntmux.echocli') && (strtolower(PHP_SAPI) === 'cli'));
|
||||
|
||||
$this->pdo = ($options['Settings'] instanceof DB ? $options['Settings'] : new DB());
|
||||
$this->_nntp = ($options['NNTP'] instanceof NNTP ? $options['NNTP'] : new NNTP(['Echo' => $this->_echoCLI, 'Settings' => $this->pdo]));
|
||||
@@ -1731,7 +1731,7 @@ class ProcessAdditional
|
||||
if (isset($arrXml['File']['track'])) {
|
||||
foreach ($arrXml['File']['track'] as $track) {
|
||||
if (isset($track['Album']) && isset($track['Performer'])) {
|
||||
if (env('RENAME_MUSIC_MEDIAINFO', true) && (int) $this->_release['predb_id'] === 0) {
|
||||
if (config('nntmux.rename_music_mediainfo') && (int) $this->_release['predb_id'] === 0) {
|
||||
// Make the extension upper case.
|
||||
$ext = strtoupper($fileExtension);
|
||||
|
||||
@@ -2168,7 +2168,7 @@ class ProcessAdditional
|
||||
|
||||
// Only get a new name if the category is OTHER.
|
||||
$foundName = true;
|
||||
if (env('RENAME_PAR2', true) &&
|
||||
if (config('nntmux.rename_par2') &&
|
||||
$releaseInfo['proc_pp'] === 0 &&
|
||||
\in_array(
|
||||
(int) $this->_release['categories_id'],
|
||||
|
||||
Reference in New Issue
Block a user