mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[techtvmit] Fix extraction
This commit is contained in:
parent
4d71e200c6
commit
9af461de35
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ def _real_extract(self, url):
|
||||||
'http://techtv.mit.edu/videos/%s' % video_id, video_id)
|
'http://techtv.mit.edu/videos/%s' % video_id, video_id)
|
||||||
clean_page = re.compile(r'<!--.*?-->', re.S).sub('', raw_page)
|
clean_page = re.compile(r'<!--.*?-->', re.S).sub('', raw_page)
|
||||||
|
|
||||||
base_url = self._search_regex(
|
base_url = self._proto_relative_url(self._search_regex(
|
||||||
r'ipadUrl: \'(.+?cloudfront.net/)', raw_page, 'base url')
|
r'ipadUrl: \'(.+?cloudfront.net/)', raw_page, 'base url'), 'http:')
|
||||||
formats_json = self._search_regex(
|
formats_json = self._search_regex(
|
||||||
r'bitrates: (\[.+?\])', raw_page, 'video formats')
|
r'bitrates: (\[.+?\])', raw_page, 'video formats')
|
||||||
formats_mit = json.loads(formats_json)
|
formats_mit = json.loads(formats_json)
|
||||||
|
|
Loading…
Reference in a new issue