1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 00:25:08 +00:00

[ie/vimeo] Support browser impersonation (#10327)

Closes #10325
Authored by: bashonly
This commit is contained in:
bashonly
2024-07-01 15:55:18 -05:00
committed by GitHub
parent 1d6ab17d07
commit d4b99a2333
2 changed files with 25 additions and 12 deletions

View File

@ -316,7 +316,8 @@ class PatreonIE(PatreonBaseIE):
r'(https(?:%3A%2F%2F|://)player\.vimeo\.com.+app_id(?:=|%3D)+\d+)',
traverse_obj(attributes, ('embed', 'html', {str})), 'vimeo url', fatal=False) or '')
if url_or_none(v_url) and self._request_webpage(
v_url, video_id, 'Checking Vimeo embed URL', headers=headers, fatal=False, errnote=False):
v_url, video_id, 'Checking Vimeo embed URL', headers=headers,
fatal=False, errnote=False, expected_status=429): # 429 is TLS fingerprint rejection
entries.append(self.url_result(
VimeoIE._smuggle_referrer(v_url, 'https://patreon.com/'),
VimeoIE, url_transparent=True))