diff options
author | Remita Amine <remitamine@gmail.com> | 2019-09-21 21:57:45 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2019-09-21 21:57:45 +0100 |
commit | edb2820ca5febb6bc88201e348bcdc904e7cbacb (patch) | |
tree | 2bdce0853e88de1231fe25d483e4a16d4703900f | |
parent | 6cf6b357f581af841a7d109aad47e40acf7d7795 (diff) |
[instagram] add support for tv URLs
-rw-r--r-- | youtube_dl/extractor/instagram.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/instagram.py b/youtube_dl/extractor/instagram.py index ffd87b55f..b061850a1 100644 --- a/youtube_dl/extractor/instagram.py +++ b/youtube_dl/extractor/instagram.py @@ -22,7 +22,7 @@ from ..utils import ( class InstagramIE(InfoExtractor): - _VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com/p/(?P<id>[^/?#&]+))' + _VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com/(?:p|tv)/(?P<id>[^/?#&]+))' _TESTS = [{ 'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc', 'md5': '0d2da106a9d2631273e192b372806516', @@ -92,6 +92,9 @@ class InstagramIE(InfoExtractor): }, { 'url': 'http://instagram.com/p/9o6LshA7zy/embed/', 'only_matching': True, + }, { + 'url': 'https://www.instagram.com/tv/aye83DjauH/', + 'only_matching': True, }] @staticmethod |