aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/nbc.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <[email protected]>2015-03-31 02:21:27 +0800
committerYen Chi Hsuan <[email protected]>2015-03-31 02:21:27 +0800
commita28ccbabc60c81016c851ae46365be377ea83795 (patch)
treead29e11bf1d2c05b1b458b70dfe40fc0b19ea1c3 /youtube_dl/extractor/nbc.py
parentedd7344820303e550c9daae1ef591be8068ac47e (diff)
downloadyoutube-dl-a28ccbabc60c81016c851ae46365be377ea83795.tar.gz
youtube-dl-a28ccbabc60c81016c851ae46365be377ea83795.zip
[Yahoo/NBCSports] Fix #5226
Diffstat (limited to 'youtube_dl/extractor/nbc.py')
-rw-r--r--youtube_dl/extractor/nbc.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/youtube_dl/extractor/nbc.py b/youtube_dl/extractor/nbc.py
index 80a01c778..033bf71f0 100644
--- a/youtube_dl/extractor/nbc.py
+++ b/youtube_dl/extractor/nbc.py
@@ -50,6 +50,27 @@ class NBCIE(InfoExtractor):
return self.url_result(theplatform_url)
+class NBCSportsIE(InfoExtractor):
+ _VALID_URL = r'https?://vplayer\.nbcsports\.com/(?:[^/]+/)+(?P<id>[0-9a-zA-Z]+)'
+
+ _TEST = {
+ 'url': 'https://vplayer.nbcsports.com/p/BxmELC/nbcsports_share/select/9CsDKds0kvHI',
+ 'md5': 'ceae8dced5c14a1c1ffcb7a32194cca5',
+ 'info_dict': {
+ 'id': '9CsDKds0kvHI',
+ 'ext': 'flv',
+ 'description': 'md5:df390f70a9ba7c95ff1daace988f0d8d',
+ 'title': 'Tyler Kalinoski hits buzzer-beater to lift Davidson',
+ }
+ }
+
+ def _real_extract(self, url):
+ video_id = self._match_id(url)
+ webpage = self._download_webpage(url, video_id)
+ theplatform_url = self._og_search_video_url(webpage)
+ return self.url_result(theplatform_url, 'ThePlatform')
+
+
class NBCNewsIE(InfoExtractor):
_VALID_URL = r'''(?x)https?://(?:www\.)?nbcnews\.com/
(?:video/.+?/(?P<id>\d+)|