summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-09-16 10:08:34 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-09-16 10:08:34 +0200
commit7bb5df1cdae27140319741144e188ae11c378aca (patch)
treeac9607313cd49a4252f07f922bb94c66a3cb7a0e
parent37a81dff047c40b2a8fb163b94bc86ebe166db73 (diff)
downloadyoutube-dl-7bb5df1cdae27140319741144e188ae11c378aca.tar.gz
youtube-dl-7bb5df1cdae27140319741144e188ae11c378aca.tar.xz
youtube-dl-7bb5df1cdae27140319741144e188ae11c378aca.zip
[nhl] Match videos without catid (Fixes #3764)
-rw-r--r--youtube_dl/extractor/nhl.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/nhl.py b/youtube_dl/extractor/nhl.py
index ceda1dcc0..072d9cf8e 100644
--- a/youtube_dl/extractor/nhl.py
+++ b/youtube_dl/extractor/nhl.py
@@ -46,9 +46,9 @@ class NHLBaseInfoExtractor(InfoExtractor):
 
 class NHLIE(NHLBaseInfoExtractor):
     IE_NAME = 'nhl.com'
-    _VALID_URL = r'https?://video(?P<team>\.[^.]*)?\.nhl\.com/videocenter/console\?.*?(?:[?&])id=(?P<id>[0-9]+)'
+    _VALID_URL = r'https?://video(?P<team>\.[^.]*)?\.nhl\.com/videocenter/console(?:\?(?:.*?[?&])?)id=(?P<id>[0-9]+)'
 
-    _TEST = {
+    _TESTS = [{
         'url': 'http://video.canucks.nhl.com/videocenter/console?catid=6?id=453614',
         'info_dict': {
             'id': '453614',
@@ -58,7 +58,10 @@ class NHLIE(NHLBaseInfoExtractor):
             'duration': 18,
             'upload_date': '20131006',
         },
-    }
+    }, {
+        'url': 'http://video.flames.nhl.com/videocenter/console?id=630616',
+        'only_matching': True,
+    }]
 
     def _real_extract(self, url):
         mobj = re.match(self._VALID_URL, url)