projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
05b476a
)
[nhl] Add support for embedded URLs
author
Sergey M․
<dstftw@gmail.com>
Thu, 24 Sep 2015 17:48:23 +0000
(23:48 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 24 Sep 2015 17:48:23 +0000
(23:48 +0600)
youtube_dl/extractor/nhl.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nhl.py
b/youtube_dl/extractor/nhl.py
index 279b18386197560346e1cbce716ecf7ff61af2f9..970a11f7ce620dec42067fd54d9c356ae3673e1f 100644
(file)
--- a/
youtube_dl/extractor/nhl.py
+++ b/
youtube_dl/extractor/nhl.py
@@
-72,7
+72,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|hlg
)=(?P<id>[-0-9a-zA-Z,]+)'
+ _VALID_URL = r'https?://video(?P<team>\.[^.]*)?\.nhl\.com/videocenter/(?:console
|embed)?(?:\?(?:.*?[?&])?)(?:id|hlg|playlist
)=(?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',
@@
-136,6
+136,9
@@
class NHLIE(NHLBaseInfoExtractor):
'params': {
'skip_download': True, # Requires rtmpdump
}
'params': {
'skip_download': True, # Requires rtmpdump
}
+ }, {
+ 'url': 'http://video.nhl.com/videocenter/embed?playlist=836127',
+ 'only_matching': True,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):