From d5067c51c5fc5ce32ca5779f6cc0ce9f83fc279e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 6 Aug 2020 19:20:25 +0200 Subject: [PATCH] [instagram] support '/reel/' URLs --- gallery_dl/extractor/instagram.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/instagram.py b/gallery_dl/extractor/instagram.py index 3aa624fc..639f2724 100644 --- a/gallery_dl/extractor/instagram.py +++ b/gallery_dl/extractor/instagram.py @@ -342,7 +342,8 @@ class InstagramExtractor(Extractor): class InstagramImageExtractor(InstagramExtractor): """Extractor for PostPage""" subcategory = "image" - pattern = r"(?:https?://)?(?:www\.)?instagram\.com/(?:p|tv)/([^/?&#]+)" + pattern = (r"(?:https?://)?(?:www\.)?instagram\.com" + r"/(?:p|tv|reel)/([^/?&#]+)") test = ( # GraphImage ("https://www.instagram.com/p/BqvsDleB3lV/", { @@ -440,6 +441,8 @@ class InstagramImageExtractor(InstagramExtractor): }] } }), + + ("https://www.instagram.com/reel/CDg_6Y1pxWu/"), ) def __init__(self, match): @@ -500,7 +503,7 @@ class InstagramUserExtractor(InstagramExtractor): """Extractor for ProfilePage""" subcategory = "user" pattern = (r"(?:https?://)?(?:www\.)?instagram\.com" - r"/(?!p/|explore/|directory/|accounts/|stories/|tv/)" + r"/(?!(?:p|explore|directory|accounts|stories|tv|reel)/)" r"([^/?&#]+)/?(?:$|[?#])") test = ( ("https://www.instagram.com/instagram/", {