mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update ReleaseCleaning
This commit is contained in:
@@ -203,7 +203,7 @@ class ReleaseCleaning
|
||||
public function teevee(): array
|
||||
{
|
||||
//[140022]-[04] - [01/40] - "140022-04.nfo" yEnc
|
||||
if (preg_match('/\[\d+\]-\[.+\] - \[\d+\/\d+\] - "\d+-.+" yEnc/', $this->subject)) {
|
||||
if (preg_match('/\[\d+\]-\[.+\] - \[\d+\/\d+\] - "\d+\-.+" yEnc/', $this->subject)) {
|
||||
return [
|
||||
'cleansubject' => $this->subject,
|
||||
'properlynamed' => false,
|
||||
@@ -429,7 +429,7 @@ class ReleaseCleaning
|
||||
*/
|
||||
public function releaseCleanerHelper($subject): string
|
||||
{
|
||||
$cleanerName = preg_replace('/(- )?yEnc$/', '', $subject);
|
||||
$cleanerName = preg_replace('/(\- )?yEnc$/', '', $subject);
|
||||
|
||||
return trim(preg_replace('/\s\s+/', ' ', $cleanerName));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user