mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 01:25:06 +00:00
[vimeo] add support for Vimeo Pro portfolio protected videos(closes #20070)
This commit is contained in:
parent
04c33bdfb3
commit
06242d44fe
1 changed files with 5 additions and 1 deletions
|
@ -502,7 +502,11 @@ def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
video_id = mobj.group('id')
|
video_id = mobj.group('id')
|
||||||
orig_url = url
|
orig_url = url
|
||||||
if mobj.group('pro') or mobj.group('player'):
|
if mobj.group('pro'):
|
||||||
|
# some videos require portfolio_id to be present in player url
|
||||||
|
# https://github.com/rg3/youtube-dl/issues/20070
|
||||||
|
url = self._extract_url(url, self._download_webpage(url, video_id))
|
||||||
|
elif mobj.group('player'):
|
||||||
url = 'https://player.vimeo.com/video/' + video_id
|
url = 'https://player.vimeo.com/video/' + video_id
|
||||||
elif any(p in url for p in ('play_redirect_hls', 'moogaloop.swf')):
|
elif any(p in url for p in ('play_redirect_hls', 'moogaloop.swf')):
|
||||||
url = 'https://vimeo.com/' + video_id
|
url = 'https://vimeo.com/' + video_id
|
||||||
|
|
Loading…
Reference in a new issue