[extractor/generic] Improve instagram embeds (Closes #9213)
authorSergey M․ <dstftw@gmail.com>
Sat, 16 Apr 2016 16:39:20 +0000 (22:39 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 16 Apr 2016 16:39:20 +0000 (22:39 +0600)
youtube_dl/extractor/generic.py

index 518b4f9de1c49cd7884f8c590422e8249e476d20..95d23325900e8ed0d61bcec5d09ff3ba3d5e7a82 100644 (file)
@@ -1956,7 +1956,8 @@ class GenericIE(InfoExtractor):
         # 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)