]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[techtvmit] Fix extraction
authorSergey M․ <dstftw@gmail.com>
Sun, 6 Sep 2015 04:28:40 +0000 (10:28 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 6 Sep 2015 04:28:40 +0000 (10:28 +0600)
youtube_dl/extractor/mit.py

index d7ab6a9aef23235d099175c7aff76ddd0ac0f84d..6cef41159a283c32fc759b0b976d8eeae5d8b170 100644 (file)
@@ -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)