From: John Boehr Date: Thu, 19 Feb 2015 03:28:19 +0000 (-0800) Subject: [imgur] improve regex #4998 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=d236b37ac94cd36657c881e18b8d9187483afa80;p=youtube-dl [imgur] improve regex #4998 --- diff --git a/youtube_dl/extractor/imgur.py b/youtube_dl/extractor/imgur.py index 8449c45f4..38c961773 100644 --- a/youtube_dl/extractor/imgur.py +++ b/youtube_dl/extractor/imgur.py @@ -11,7 +11,7 @@ from ..utils import ( ) class ImgurIE(InfoExtractor): - _VALID_URL = r'https?://(?:i\.)?imgur\.com/(?P[a-zA-Z0-9]+)(?:\.)?(?:mp4|gifv)?' + _VALID_URL = r'https?://(?:i\.)?imgur\.com/(?P[a-zA-Z0-9]+)(?:\.mp4|\.gifv)?' _TESTS = [{ 'url': 'https://i.imgur.com/A61SaA1.gifv',