projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ef1269f
)
[nhl] Improve _VALID_URL (#4805)
author
Sergey M․
<dstftw@gmail.com>
Fri, 30 Jan 2015 16:46:53 +0000
(22:46 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 30 Jan 2015 16:46:53 +0000
(22:46 +0600)
youtube_dl/extractor/nhl.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nhl.py
b/youtube_dl/extractor/nhl.py
index d3a4fc51387a8e1a1b56718ba9dafabf1d9a7db5..cb279074ed411ca48f4c99e8963069887c991c2e 100644
(file)
--- a/
youtube_dl/extractor/nhl.py
+++ b/
youtube_dl/extractor/nhl.py
@@
-54,7
+54,7
@@
class NHLBaseInfoExtractor(InfoExtractor):
class NHLIE(NHLBaseInfoExtractor):
IE_NAME = 'nhl.com'
class NHLIE(NHLBaseInfoExtractor):
IE_NAME = 'nhl.com'
- _VALID_URL = r'https?://video(?P<team>\.[^.]*)?\.nhl\.com/videocenter/
console
(?:\?(?:.*?[?&])?)id=(?P<id>[-0-9a-zA-Z]+)'
+ _VALID_URL = r'https?://video(?P<team>\.[^.]*)?\.nhl\.com/videocenter/
(?:console)?
(?:\?(?:.*?[?&])?)id=(?P<id>[-0-9a-zA-Z]+)'
_TESTS = [{
'url': 'http://video.canucks.nhl.com/videocenter/console?catid=6?id=453614',
_TESTS = [{
'url': 'http://video.canucks.nhl.com/videocenter/console?catid=6?id=453614',
@@
-92,6
+92,9
@@
class NHLIE(NHLBaseInfoExtractor):
}, {
'url': 'http://video.flames.nhl.com/videocenter/console?id=630616',
'only_matching': True,
}, {
'url': 'http://video.flames.nhl.com/videocenter/console?id=630616',
'only_matching': True,
+ }, {
+ 'url': 'http://video.nhl.com/videocenter/?id=736722',
+ 'only_matching': True,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):