From: Sergey M․ Date: Sat, 14 Nov 2015 01:21:20 +0000 (+0600) Subject: [instagram] Add test for #7497 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=4479600d57d1a48de5a910764e2d18c30d7a4bd9;p=youtube-dl [instagram] Add test for #7497 --- diff --git a/youtube_dl/extractor/instagram.py b/youtube_dl/extractor/instagram.py index ddcaf76d1..fce179000 100644 --- a/youtube_dl/extractor/instagram.py +++ b/youtube_dl/extractor/instagram.py @@ -11,7 +11,7 @@ from ..utils import ( class InstagramIE(InfoExtractor): _VALID_URL = r'https://instagram\.com/p/(?P[^/?#&]+)' - _TEST = { + _TESTS = [{ 'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc', 'md5': '0d2da106a9d2631273e192b372806516', 'info_dict': { @@ -21,7 +21,10 @@ class InstagramIE(InfoExtractor): 'title': 'Video by naomipq', 'description': 'md5:1f17f0ab29bd6fe2bfad705f58de3cb8', } - } + }, { + 'url': 'https://instagram.com/p/-Cmh1cukG2/', + 'only_matching': True, + }] def _real_extract(self, url): video_id = self._match_id(url)