1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-13 16:49:34 +00:00

[instagram] Add support for reel URLs (closes #26234, closes #26250)

This commit is contained in:
Sergey M․ 2020-12-26 22:50:58 +07:00
parent c32a059f52
commit 46cffb0c47
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -22,7 +22,7 @@ from ..utils import (
class InstagramIE(InfoExtractor):
_VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com/(?:p|tv)/(?P<id>[^/?#&]+))'
_VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com/(?:p|tv|reel)/(?P<id>[^/?#&]+))'
_TESTS = [{
'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc',
'md5': '0d2da106a9d2631273e192b372806516',
@ -95,6 +95,9 @@ class InstagramIE(InfoExtractor):
}, {
'url': 'https://www.instagram.com/tv/aye83DjauH/',
'only_matching': True,
}, {
'url': 'https://www.instagram.com/reel/CDUMkliABpa/',
'only_matching': True,
}]
@staticmethod