diff --git a/Blacklight/Categorize.php b/Blacklight/Categorize.php index 9eb705afa..9a4a618e7 100755 --- a/Blacklight/Categorize.php +++ b/Blacklight/Categorize.php @@ -1209,14 +1209,14 @@ class Categorize */ public function isPCGame(): bool { - if (preg_match('/[^a-z0-9](0x0007|ALiAS|BACKLASH|BAT|CLONECD|CPY|FAS(DOX|iSO)|FLT([-._ ]|COGENT)|FLT(DOX)?|PC GAMES?|\(?(Game([sz])|GAME([SZ]))\)? ?(\(([Cc])\))|GENESIS|-GOG|-HATRED|HI2U|INLAWS|JAGUAR|MAZE|MONEY|OUTLAWS|PPTCLASSiCS|PC Game|PROPHET|RAiN|Razor1911|RELOADED|DEViANCE|PLAZA|RiTUELYPOGEiOS|[rR][iI][pP]-[uU][nN][lL][eE][aA][sS][hH][eE][dD]|Steam(\b)?Rip|SKIDROW|TiNYiSO|CODEX)[^a-z0-9]?/', $this->releaseName)) { + if (preg_match('/[^a-z0-9](0x0007|ALiAS|BACKLASH|BAT|CLONECD|CPY|FAS(DOX|iSO)|FLT([-._ ]|COGENT)|FLT(DOX)?|PC GAMES?|\(?(Game([sz])|GAME([SZ]))\)? ?(\(([Cc])\))|GENESIS|-GOG|-HATRED|HI2U|INLAWS|JAGUAR|MAZE|MONEY|OUTLAWS|PPTCLASSiCS|PC Game|PROPHET|RAiN|Razor1911|RELOADED|DEViANCE|PLAZA|RiTUELYPOGEiOS|[rR][iI][pP]-[uU][nN][lL][eE][aA][sS][hH][eE][dD]|Steam(\b)?Rip|SKIDROW|TiNYiSO|CODEX|SiMPLEX)[^a-z0-9]?/', $this->releaseName)) { $this->tmpCat = Category::PC_GAMES; $this->tmpTag[] = Category::TAG_PC_GAMES; return true; } - if ($this->checkPoster('/\/i', $this->poster, Category::PC_GAMES) === true) { + if ($this->checkPoster('/\/i', $this->poster, Category::PC_GAMES)) { return true; } diff --git a/Changelog b/Changelog index 441914813..6ba83c87d 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2019-02-26 DariusIII + * Chg: Update isPcGame function categorization regex 2019-02-25 DariusIII * Fix: Fix Releases class instantiation * Chg: Releases class now extends Release model