This commit is contained in:
DariusIII
2023-04-04 21:56:22 +02:00
parent a527301c83
commit 0483fa7534
7 changed files with 8 additions and 18 deletions
+1 -1
View File
@@ -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;
+2 -4
View File
@@ -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'].
+1 -2
View File
@@ -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.
' - '.
+1 -2
View File
@@ -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';
+1 -2
View File
@@ -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