1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-31 00:42:58 +08:00

[techtvmit] Fix extraction

This commit is contained in:
Sergey M․ 2015-09-06 10:28:40 +06:00
parent 4d71e200c6
commit 9af461de35

View 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)