[nhl.com:videocenter] Don't match url with 'id=*' before 'catid' in the query
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 2 Dec 2014 22:56:30 +0000 (23:56 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 2 Dec 2014 22:56:30 +0000 (23:56 +0100)
Since the order extractors are added is not defined, it would match instead of NHLIE.

youtube_dl/extractor/nhl.py

index bdcf7e23953870e61a523a11b4daaf10cfc3ab75..2a84f676150afb9f93a52bef68557ea5ac7bd54f 100644 (file)
@@ -90,7 +90,7 @@ class NHLIE(NHLBaseInfoExtractor):
 class NHLVideocenterIE(NHLBaseInfoExtractor):
     IE_NAME = 'nhl.com:videocenter'
     IE_DESC = 'NHL videocenter category'
-    _VALID_URL = r'https?://video\.(?P<team>[^.]*)\.nhl\.com/videocenter/(console\?.*?catid=(?P<catid>[0-9]+)(?![&?]id=).*?)?$'
+    _VALID_URL = r'https?://video\.(?P<team>[^.]*)\.nhl\.com/videocenter/(console\?[^(id=)]*catid=(?P<catid>[0-9]+)(?![&?]id=).*?)?$'
     _TEST = {
         'url': 'http://video.canucks.nhl.com/videocenter/console?catid=999',
         'info_dict': {