projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
820fae3
)
[Vimeo] Improve `config` extraction (#32742)
author
Zizheng Guo
<19143357+gzz2000@users.noreply.github.com>
Tue, 12 Mar 2024 11:44:13 +0000
(19:44 +0800)
committer
GitHub
<noreply@github.com>
Tue, 12 Mar 2024 11:44:13 +0000
(11:44 +0000)
* update for more robust json parsing
youtube_dl/extractor/vimeo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vimeo.py
b/youtube_dl/extractor/vimeo.py
index 8e1a805f64060cc7b503fb0c10a524a0904ec506..47ec0a9b449c1483d04dac31b29d60cd2a05514e 100644
(file)
--- a/
youtube_dl/extractor/vimeo.py
+++ b/
youtube_dl/extractor/vimeo.py
@@
-673,8
+673,8
@@
class VimeoIE(VimeoBaseInfoExtractor):
raise
if '//player.vimeo.com/video/' in url:
- config = self._
parse_json(self._search_regex
(
- r'
(?s)\b(?:playerC|c)onfig\s*=\s*({.+?})\s*[;\n]', webpage, 'info section')
, video_id)
+ config = self._
search_json
(
+ r'
\b(?:playerC|c)onfig\s*=', webpage, 'info section'
, video_id)
if config.get('view') == 4:
config = self._verify_player_video_password(
redirect_url, video_id, headers)