mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:07:07 -05:00 
			
		
		
		
	[imgur] improve regex #4998
This commit is contained in:
		@@ -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',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user