From 151bae3566d8b4a1c36ed3a368c515bd1349d2b6 Mon Sep 17 00:00:00 2001 From: Anthony Weems Date: Tue, 25 Feb 2014 14:44:34 -0600 Subject: [PATCH] Add support for ocw.mit.edu video lectures --- youtube_dl/extractor/__init__.py | 2 +- youtube_dl/extractor/mit.py | 54 ++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.py index 8eff3df41..ee081b1f3 100644 --- a/youtube_dl/extractor/__init__.py +++ b/youtube_dl/extractor/__init__.py @@ -137,7 +137,7 @@ from .mdr import MDRIE from .metacafe import MetacafeIE from .metacritic import MetacriticIE -from .mit import TechTVMITIE, MITIE +from .mit import TechTVMITIE, MITIE, OCWMITIE from .mixcloud import MixcloudIE from .mpora import MporaIE from .mofosex import MofosexIE diff --git a/youtube_dl/extractor/mit.py b/youtube_dl/extractor/mit.py index 76b717fe5..7c40cb8bd 100644 --- a/youtube_dl/extractor/mit.py +++ b/youtube_dl/extractor/mit.py @@ -3,6 +3,7 @@ from .common import InfoExtractor from ..utils import ( + compat_urlparse, clean_html, get_element_by_id, ) @@ -81,3 +82,56 @@ def _real_extract(self, url): embed_url = self._search_regex(r'