aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/nbc.py
diff options
context:
space:
mode:
authorremitamine <[email protected]>2016-03-31 00:26:42 +0100
committerremitamine <[email protected]>2016-03-31 00:26:42 +0100
commit9cf01f7f30b698aee6d22052d8898b14a59d94bb (patch)
treef09dd5da352722f4dffa013d556e7c2fe531cdc1 /youtube_dl/extractor/nbc.py
parentce548296fe8bde2756fd9915bd744c904231de8f (diff)
downloadyoutube-dl-9cf01f7f30b698aee6d22052d8898b14a59d94bb.tar.gz
youtube-dl-9cf01f7f30b698aee6d22052d8898b14a59d94bb.zip
[nbc] add new extractor for csnne.com(#5432)
Diffstat (limited to 'youtube_dl/extractor/nbc.py')
-rw-r--r--youtube_dl/extractor/nbc.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/youtube_dl/extractor/nbc.py b/youtube_dl/extractor/nbc.py
index a622f2212..43d75d3ca 100644
--- a/youtube_dl/extractor/nbc.py
+++ b/youtube_dl/extractor/nbc.py
@@ -134,6 +134,30 @@ class NBCSportsIE(InfoExtractor):
NBCSportsVPlayerIE._extract_url(webpage), 'NBCSportsVPlayer')
+class CSNNEIE(InfoExtractor):
+ _VALID_URL = r'https?://www\.csnne\.com/video/(?P<id>[0-9a-z-]+)'
+
+ _TEST = {
+ 'url': 'http://www.csnne.com/video/snc-evening-update-wright-named-red-sox-no-5-starter',
+ 'info_dict': {
+ 'id': 'yvBLLUgQ8WU0',
+ 'ext': 'mp4',
+ 'title': 'SNC evening update: Wright named Red Sox\' No. 5 starter.',
+ 'description': 'md5:1753cfee40d9352b19b4c9b3e589b9e3',
+ }
+ }
+
+ def _real_extract(self, url):
+ display_id = self._match_id(url)
+ webpage = self._download_webpage(url, display_id)
+ return {
+ '_type': 'url_transparent',
+ 'ie_key': 'ThePlatform',
+ 'url': self._html_search_meta('twitter:player:stream', webpage),
+ 'display_id': display_id,
+ }
+
+
class NBCNewsIE(ThePlatformIE):
_VALID_URL = r'''(?x)https?://(?:www\.)?nbcnews\.com/
(?:video/.+?/(?P<id>\d+)|