mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-18 15:15:42 +07:00
[vimeo] Fix the extraction of vimeo pro and player.vimeo.com videos
This commit is contained in:
@@ -151,7 +151,7 @@ def _real_extract(self, url, new_video=True):
|
|||||||
config = json.loads(config_json)
|
config = json.loads(config_json)
|
||||||
except RegexNotFoundError:
|
except RegexNotFoundError:
|
||||||
# For pro videos or player.vimeo.com urls
|
# For pro videos or player.vimeo.com urls
|
||||||
config = self._search_regex([r' = {config:({.+?}),assets:', r'c=({.+?);'],
|
config = self._search_regex([r' = {config:({.+?}),assets:', r'(?:c|b)=({.+?});'],
|
||||||
webpage, u'info section', flags=re.DOTALL)
|
webpage, u'info section', flags=re.DOTALL)
|
||||||
config = json.loads(config)
|
config = json.loads(config)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user