aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/channel9.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-10-11 21:59:30 +0700
committerSergey M․ <dstftw@gmail.com>2017-10-11 21:59:30 +0700
commit26bae2d96509b5c5ec80c27c1ea754b53c53818c (patch)
treea5f38f9d354b076664abf22256a8d9ccc6869bda /youtube_dl/extractor/channel9.py
parent5fe75f976f6c8da76bfea68e073e5f35c4300442 (diff)
[generic] Add support for channel9 embeds (closes #14469)
Diffstat (limited to 'youtube_dl/extractor/channel9.py')
-rw-r--r--youtube_dl/extractor/channel9.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/channel9.py b/youtube_dl/extractor/channel9.py
index e92894246..81108e704 100644
--- a/youtube_dl/extractor/channel9.py
+++ b/youtube_dl/extractor/channel9.py
@@ -81,6 +81,12 @@ class Channel9IE(InfoExtractor):
_RSS_URL = 'http://channel9.msdn.com/%s/RSS'
+ @staticmethod
+ def _extract_urls(webpage):
+ return re.findall(
+ r'<iframe[^>]+src=["\'](https?://channel9\.msdn\.com/(?:[^/]+/)+)player\b',
+ webpage)
+
def _extract_list(self, video_id, rss_url=None):
if not rss_url:
rss_url = self._RSS_URL % video_id