From: Anthony Weems Date: Tue, 25 Feb 2014 20:44:34 +0000 (-0600) Subject: Add support for ocw.mit.edu video lectures X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=151bae3566d8b4a1c36ed3a368c515bd1349d2b6;p=youtube-dl Add support for ocw.mit.edu video lectures --- 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 .malemotion import MalemotionIE 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 @@ import json from .common import InfoExtractor from ..utils import ( + compat_urlparse, clean_html, get_element_by_id, ) @@ -81,3 +82,56 @@ class MITIE(TechTVMITIE): embed_url = self._search_regex(r'