[imgur] improve regex #4998
authorJohn Boehr <jbboehr@gmail.com>
Thu, 19 Feb 2015 03:28:19 +0000 (19:28 -0800)
committerJohn Boehr <jbboehr@gmail.com>
Thu, 19 Feb 2015 03:28:19 +0000 (19:28 -0800)
youtube_dl/extractor/imgur.py

index 8449c45f43820ac9c1c90f6b2f05b6898abc4529..38c9617731cf1b1a708939e46009b0bdba88774d 100644 (file)
@@ -11,7 +11,7 @@ from ..utils import (
 )
 
 class ImgurIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:i\.)?imgur\.com/(?P<id>[a-zA-Z0-9]+)(?:\.)?(?:mp4|gifv)?'
+    _VALID_URL = r'https?://(?:i\.)?imgur\.com/(?P<id>[a-zA-Z0-9]+)(?:\.mp4|\.gifv)?'
 
     _TESTS = [{
         'url': 'https://i.imgur.com/A61SaA1.gifv',