aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-03-24 16:32:27 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-03-24 16:32:27 +0800
commit5a51775a58b901c63bb0b59e44a113ad16ceb236 (patch)
tree6c7b0b88a7ca4655d95a26877183ba339b2ac08b
parent87696e78d7203cf47bdd27773d06ba15af7c819d (diff)
[generic] Extract Instagram embeds (#8817)
-rw-r--r--youtube_dl/extractor/generic.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 93e0563b5..12f2309fc 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -59,6 +59,7 @@ from .videomore import VideomoreIE
from .googledrive import GoogleDriveIE
from .jwplatform import JWPlatformIE
from .digiteka import DigitekaIE
+from .instagram import InstagramIE
class GenericIE(InfoExtractor):
@@ -1917,6 +1918,11 @@ class GenericIE(InfoExtractor):
return self.url_result(
self._proto_relative_url(unescapeHTML(mobj.group(1))), 'Vine')
+ # 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())
+
def check_video(vurl):
if YoutubeIE.suitable(vurl):
return True