0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-03 03:57:26 +00:00

[extractor/generic] Improve instagram embeds (Closes #9213)

This commit is contained in:
Sergey M․ 2016-04-16 22:39:20 +06:00
parent c23533a100
commit 11e60fcad8
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -1956,7 +1956,8 @@ def _playlist_from_matches(matches, getter=None, ie=None):
# Look for Instagram embeds
instagram_embed_url = InstagramIE._extract_embed_url(webpage)
if instagram_embed_url is not None:
return self.url_result(instagram_embed_url, InstagramIE.ie_key())
return self.url_result(
self._proto_relative_url(instagram_embed_url), InstagramIE.ie_key())
# Look for LiveLeak embeds
liveleak_url = LiveLeakIE._extract_url(webpage)