Improve UHD matching

This commit is contained in:
DariusIII
2017-05-05 15:18:06 +02:00
parent 79ce840e5a
commit c6b6200505
+2 -2
View File
@@ -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;
}