mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Improve UHD matching
This commit is contained in:
@@ -738,7 +738,7 @@ class Categorize extends Category
|
||||
*/
|
||||
public function isUHDTV(): bool
|
||||
{
|
||||
if (preg_match('/2160p.*(Netflix|Amazon).*(TrollUHD|NTb|VLAD)/i', $this->releaseName)) {
|
||||
if (preg_match('/(S\d+).*(2160p).*(Netflix|Amazon).*(TrollUHD|NTb|VLAD)/i', $this->releaseName)) {
|
||||
$this->tmpCat = Category::TV_UHD;
|
||||
return true;
|
||||
}
|
||||
@@ -889,7 +889,7 @@ class Categorize extends Category
|
||||
*/
|
||||
public function isMovieUHD(): bool
|
||||
{
|
||||
if (stripos($this->releaseName, '2160p')) {
|
||||
if (!preg_match('/(S\d+).*(2160p).*(Netflix|Amazon).*(TrollUHD|NTb|VLAD)/i', $this->releaseName) && preg_match('/2160p/i', $this->releaseName)) {
|
||||
$this->tmpCat = Category::MOVIE_UHD;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user