Browse Source

[imgur] improve regex #4998

master
John Boehr 9 years ago
parent
commit
d236b37ac9
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/imgur.py

2
youtube_dl/extractor/imgur.py

@ -11,7 +11,7 @@ from ..utils import (
) )
class ImgurIE(InfoExtractor): 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 = [{ _TESTS = [{
'url': 'https://i.imgur.com/A61SaA1.gifv', 'url': 'https://i.imgur.com/A61SaA1.gifv',

Loading…
Cancel
Save