mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
CS fixes
This commit is contained in:
@@ -76,7 +76,7 @@ class Categorize
|
||||
|
||||
public function byGroupName($groupName): bool
|
||||
{
|
||||
switch(true) {
|
||||
switch (true) {
|
||||
case preg_match('/alt\.binaries\.erotica([.]\w+)?/i', $groupName):
|
||||
if ($this->isXxx()) {
|
||||
return true;
|
||||
|
||||
@@ -179,8 +179,7 @@ class IRCScraper extends IRCClient
|
||||
$this->joinChannels($channels);
|
||||
|
||||
if (! $this->_silent) {
|
||||
echo
|
||||
'['.
|
||||
echo '['.
|
||||
date('r').
|
||||
'] [Scraping of IRC channels for ('.
|
||||
config('irc_settings.scrape_irc_server').
|
||||
@@ -431,8 +430,7 @@ class IRCScraper extends IRCClient
|
||||
$nukeString .= '['.$this->_curPre['reason'].'] ';
|
||||
}
|
||||
|
||||
echo
|
||||
'['.
|
||||
echo '['.
|
||||
date('r').
|
||||
($new ? '] [ Added Pre ] [' : '] [Updated Pre] [').
|
||||
$this->_curPre['source'].
|
||||
|
||||
@@ -214,8 +214,7 @@ class NZBContents
|
||||
$nzbContents = Utility::unzipGzipFile($nzbPath);
|
||||
if (! $nzbContents) {
|
||||
if ($this->echooutput) {
|
||||
echo
|
||||
PHP_EOL.
|
||||
echo PHP_EOL.
|
||||
'Unable to decompress: '.
|
||||
$nzbPath.
|
||||
' - '.
|
||||
|
||||
@@ -681,8 +681,7 @@ class ProcessReleases
|
||||
|
||||
// CBP older than retention.
|
||||
if ($this->echoCLI) {
|
||||
echo
|
||||
$this->consoleTools->header('Process Releases -> Delete finished collections.'.PHP_EOL).
|
||||
echo $this->consoleTools->header('Process Releases -> Delete finished collections.'.PHP_EOL).
|
||||
$this->consoleTools->primary(sprintf(
|
||||
'Deleting collections/binaries/parts older than %d hours.',
|
||||
Settings::settingValue('..partretentionhours')
|
||||
|
||||
@@ -1178,13 +1178,11 @@ class ProcessAdditional
|
||||
File::delete($file);
|
||||
break;
|
||||
|
||||
case
|
||||
(! $this->_foundMediaInfo || ! $this->_foundSample || ! $this->_foundVideo) && preg_match('/Matroska data|MPEG v4|MPEG sequence, v2|\WAVI\W/i', $output):
|
||||
case (! $this->_foundMediaInfo || ! $this->_foundSample || ! $this->_foundVideo) && preg_match('/Matroska data|MPEG v4|MPEG sequence, v2|\WAVI\W/i', $output):
|
||||
$this->_processVideoFile($file);
|
||||
break;
|
||||
|
||||
case
|
||||
(! $this->_foundAudioSample || ! $this->_foundAudioInfo) && preg_match('/^FLAC|layer III|Vorbis audio/i', $output, $fileType):
|
||||
case (! $this->_foundAudioSample || ! $this->_foundAudioInfo) && preg_match('/^FLAC|layer III|Vorbis audio/i', $output, $fileType):
|
||||
switch ($fileType[0]) {
|
||||
case 'FLAC':
|
||||
$fileType = 'FLAC';
|
||||
|
||||
@@ -417,8 +417,7 @@ if (! function_exists('release_flag')) {
|
||||
}
|
||||
|
||||
if ($code !== '' && $page === 'browse') {
|
||||
return
|
||||
'<img title="'.$language.'" alt="'.$language.'" src="'.asset('/assets/images/flags/'.$code.'.png').'"/>';
|
||||
return '<img title="'.$language.'" alt="'.$language.'" src="'.asset('/assets/images/flags/'.$code.'.png').'"/>';
|
||||
}
|
||||
|
||||
if ($page === 'search') {
|
||||
|
||||
@@ -31,9 +31,6 @@ class AdminReleasesController extends BasePageController
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function edit(Request $request): RedirectResponse
|
||||
|
||||
Reference in New Issue
Block a user