From: Jaime Marquínez Ferrándiz Date: Tue, 4 Jun 2013 10:04:54 +0000 (+0200) Subject: VimeoIE: support videos from vimeopro.com X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=eda60e8251fc41fadf243f10b681a69e8cf12a83;p=youtube-dl VimeoIE: support videos from vimeopro.com --- diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 9fbe6d627..fe3d12776 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -1060,7 +1060,7 @@ class VimeoIE(InfoExtractor): """Information extractor for vimeo.com.""" # _VALID_URL matches Vimeo URLs - _VALID_URL = r'(?Phttps?://)?(?:(?:www|player)\.)?vimeo\.com/(?:(?:groups|album)/[^/]+/)?(?Pplay_redirect_hls\?clip_id=)?(?:videos?/)?(?P[0-9]+)' + _VALID_URL = r'(?Phttps?://)?(?:(?:www|player)\.)?vimeo(?Ppro)?\.com/(?:(?:(?:groups|album)/[^/]+)|(?:.*?)/)?(?Pplay_redirect_hls\?clip_id=)?(?:videos?/)?(?P[0-9]+)' IE_NAME = u'vimeo' def _real_extract(self, url, new_video=True): @@ -1072,7 +1072,7 @@ class VimeoIE(InfoExtractor): video_id = mobj.group('id') if not mobj.group('proto'): url = 'https://' + url - if mobj.group('direct_link'): + if mobj.group('direct_link') or mobj.group('pro'): url = 'https://vimeo.com/' + video_id # Retrieve video webpage to extract further information