mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 22:55:18 +00:00 
			
		
		
		
	[vimeo] Better formatting for regexp
This commit is contained in:
		| @@ -16,11 +16,20 @@ from ..utils import ( | |||||||
|     unsmuggle_url, |     unsmuggle_url, | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  |  | ||||||
| class VimeoIE(InfoExtractor): | class VimeoIE(InfoExtractor): | ||||||
|     """Information extractor for vimeo.com.""" |     """Information extractor for vimeo.com.""" | ||||||
|  |  | ||||||
|     # _VALID_URL matches Vimeo URLs |     # _VALID_URL matches Vimeo URLs | ||||||
|     _VALID_URL = r'(?P<proto>https?://)?(?:(?:www|(?P<player>player))\.)?vimeo(?P<pro>pro)?\.com/(?:.*?/)?(?P<direct_link>play_redirect_hls\?clip_id=)?(?:videos?/)?(?P<id>[0-9]+)/?(?:[?].*)?(?:#.*)?$' |     _VALID_URL = r'''(?x) | ||||||
|  |         (?P<proto>https?://)? | ||||||
|  |         (?:(?:www|(?P<player>player))\.)? | ||||||
|  |         vimeo(?P<pro>pro)?\.com/ | ||||||
|  |         (?:.*?/)? | ||||||
|  |         (?P<direct_link>play_redirect_hls\?clip_id=)? | ||||||
|  |         (?:videos?/)? | ||||||
|  |         (?P<id>[0-9]+) | ||||||
|  |         /?(?:[?].*)?(?:[#].*)?$''' | ||||||
|     _NETRC_MACHINE = 'vimeo' |     _NETRC_MACHINE = 'vimeo' | ||||||
|     IE_NAME = u'vimeo' |     IE_NAME = u'vimeo' | ||||||
|     _TESTS = [ |     _TESTS = [ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister