From 0e3f461981cacb70f08fb1a2ad62fd56560c9fed Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sat, 4 Mar 2017 12:05:55 +0000 Subject: [PATCH] Update regex to handle show names like "the $number" --- source/lib/DownloadDispatcher/Source/Plugin/TV.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php b/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php index 4ac50f6..54bbe3b 100644 --- a/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php +++ b/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php @@ -145,7 +145,7 @@ class DownloadDispatcher_Source_Plugin_TV extends DownloadDispatcher_Source_Plug protected function normalise($name) { $normalised_name = $name; - if (preg_match('/(?:\[ www.[a-zA-Z0-9.]+ \] - )?(.*?)([\s.]+us)?([\s\.](19|20)\d{2})?[\s\.](\[?\s*\d+x\d+\s*\]?|s(?:eason ?)?\d+[.-_ ]?e(?:pisode ?)?\d+|\d{3,4}).*/i', $normalised_name, $matches)) { + if (preg_match('/(?:\[ www.[a-zA-Z0-9.]+ \] - )?(.*?)(?