From c6b620050583e4ba2bbe20c964047fd8205885ff Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 5 May 2017 15:18:06 +0200 Subject: [PATCH] Improve UHD matching --- nntmux/Categorize.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nntmux/Categorize.php b/nntmux/Categorize.php index 07ffb93ec..c0e39b5e0 100755 --- a/nntmux/Categorize.php +++ b/nntmux/Categorize.php @@ -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; }