1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-07 19:52:40 +01:00

[patreon] Fix vimeo player regex (#1332)

Closes #1323
Authored by: zenerdi0de
This commit is contained in:
zenerdi0de 2021-10-22 06:20:49 +05:30 committed by GitHub
parent 58ab5cbc58
commit f656a23cb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,7 @@ def _real_extract(self, url):
if try_get(attributes, lambda x: x['embed']['provider']) == 'Vimeo': if try_get(attributes, lambda x: x['embed']['provider']) == 'Vimeo':
embed_html = try_get(attributes, lambda x: x['embed']['html']) embed_html = try_get(attributes, lambda x: x['embed']['html'])
v_url = url_or_none(compat_urllib_parse_unquote( v_url = url_or_none(compat_urllib_parse_unquote(
self._search_regex(r'src=(https%3A%2F%2Fplayer\.vimeo\.com.+)%3F', embed_html, 'vimeo url', fatal=False))) self._search_regex(r'(https(?:%3A%2F%2F|://)player\.vimeo\.com.+app_id(?:=|%3D)+\d+)', embed_html, 'vimeo url', fatal=False)))
if v_url: if v_url:
info.update({ info.update({
'_type': 'url_transparent', '_type': 'url_transparent',