mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-23 00:54:31 +01:00
[Instagram] get the non-https link, as they are serving Akamai cert from a instagram.com domain
This commit is contained in:
parent
db477d3a37
commit
8ffa13e03e
@ -318,10 +318,10 @@ class InfoExtractor(object):
|
|||||||
def _og_search_title(self, html, **kargs):
|
def _og_search_title(self, html, **kargs):
|
||||||
return self._og_search_property('title', html, **kargs)
|
return self._og_search_property('title', html, **kargs)
|
||||||
|
|
||||||
def _og_search_video_url(self, html, name='video url', **kargs):
|
def _og_search_video_url(self, html, name='video url', secure=True, **kargs):
|
||||||
return self._html_search_regex([self._og_regex('video:secure_url'),
|
regexes = [self._og_regex('video')]
|
||||||
self._og_regex('video')],
|
if secure: regexes.insert(0, self._og_regex('video:secure_url'))
|
||||||
html, name, **kargs)
|
return self._html_search_regex(regexes, html, name, **kargs)
|
||||||
|
|
||||||
def _rta_search(self, html):
|
def _rta_search(self, html):
|
||||||
# See http://www.rtalabel.org/index.php?content=howtofaq#single
|
# See http://www.rtalabel.org/index.php?content=howtofaq#single
|
||||||
|
@ -26,7 +26,7 @@ class InstagramIE(InfoExtractor):
|
|||||||
|
|
||||||
return [{
|
return [{
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'url': self._og_search_video_url(webpage),
|
'url': self._og_search_video_url(webpage, secure=False),
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': u'Video by %s' % uploader_id,
|
'title': u'Video by %s' % uploader_id,
|
||||||
'thumbnail': self._og_search_thumbnail(webpage),
|
'thumbnail': self._og_search_thumbnail(webpage),
|
||||||
|
Loading…
Reference in New Issue
Block a user