aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/mit.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-06 10:28:40 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-06 10:28:40 +0600
commit9af461de351f6c9594e693969ec6b6a7938479bf (patch)
tree7ff7877ff80dc3782aca99145e1afc15f9ea5346 /youtube_dl/extractor/mit.py
parent4d71e200c69d842e7df0835d27a020b5d89afcf9 (diff)
[techtvmit] Fix extraction
Diffstat (limited to 'youtube_dl/extractor/mit.py')
-rw-r--r--youtube_dl/extractor/mit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/mit.py b/youtube_dl/extractor/mit.py
index d7ab6a9ae..6cef41159 100644
--- a/youtube_dl/extractor/mit.py
+++ b/youtube_dl/extractor/mit.py
@@ -33,8 +33,8 @@ class TechTVMITIE(InfoExtractor):
'http://techtv.mit.edu/videos/%s' % video_id, video_id)
clean_page = re.compile(r'<!--.*?-->', re.S).sub('', raw_page)
- base_url = self._search_regex(
- r'ipadUrl: \'(.+?cloudfront.net/)', raw_page, 'base url')
+ base_url = self._proto_relative_url(self._search_regex(
+ r'ipadUrl: \'(.+?cloudfront.net/)', raw_page, 'base url'), 'http:')
formats_json = self._search_regex(
r'bitrates: (\[.+?\])', raw_page, 'video formats')
formats_mit = json.loads(formats_json)