-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vimeo: RegexNotFoundError('Unable to extract %s' % _name) #31311
Comments
Same problem with yt-dl 2021.12.17 [fdb16c0] and yt-dlp 2022.10.04 [4e0511f27]. I don't think this has been seen before. The hydration variable has a new name: --- old/youtube_dl/extractor/vimeo.py
+++ new/youtube_dl/extractor/vimeo.py
@@ -663,7 +663,7 @@
if '//player.vimeo.com/video/' in url:
config = self._parse_json(self._search_regex(
- r'\bconfig\s*=\s*({.+?})\s*;', webpage, 'info section'), video_id)
+ r'\b(?:playerC|c)onfig\s*=\s*({.+?})\s*;', webpage, 'info section'), video_id)
if config.get('view') == 4:
config = self._verify_player_video_password(
redirect_url, video_id, headers) Then: $ python -m youtube_dl -v -F 'https://player.vimeo.com/video/762862842'
[debug] System config: [u'--prefer-ffmpeg']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'https://player.vimeo.com/video/762862842']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: fdb16c0d6
[debug] Python version 2.7.17 (CPython) - Linux-4.4.0-210-generic-i686-with-Ubuntu-16.04-xenial
[debug] exe versions: avconv 4.3, avprobe 4.3, ffmpeg 4.3, ffprobe 4.3
[debug] Proxy map: {}
[vimeo] 762862842: Downloading webpage
[vimeo] 762862842: Downloading akfire_interconnect_quic m3u8 information
[vimeo] 762862842: Downloading akfire_interconnect_quic m3u8 information
[vimeo] 762862842: Downloading fastly_skyfire m3u8 information
[vimeo] 762862842: Downloading fastly_skyfire m3u8 information
[vimeo] 762862842: Downloading akfire_interconnect_quic MPD information
[vimeo] 762862842: Downloading akfire_interconnect_quic MPD information
[vimeo] 762862842: Downloading fastly_skyfire MPD information
[vimeo] 762862842: Downloading fastly_skyfire MPD information
[info] Available formats for 762862842:
format code extension resolution note
hls-akfire_interconnect_quic_sep-audio-medium-audio mp4 audio only
hls-fastly_skyfire_sep-audio-medium-audio mp4 audio only
dash-akfire_interconnect_quic_sep-audio-f73b48d3 m4a audio only DASH audio 64k , m4a_dash container, mp4a.40.2 (24000Hz)
dash-fastly_skyfire_sep-audio-f73b48d3 m4a audio only DASH audio 64k , m4a_dash container, mp4a.40.2 (24000Hz)
dash-akfire_interconnect_quic_sep-audio-c4b195b3 m4a audio only DASH audio 67k , m4a_dash container, opus (48000Hz)
dash-fastly_skyfire_sep-audio-c4b195b3 m4a audio only DASH audio 67k , m4a_dash container, opus (48000Hz)
dash-akfire_interconnect_quic_sep-audio-33b5709a m4a audio only DASH audio 99k , m4a_dash container, opus (48000Hz)
dash-fastly_skyfire_sep-audio-33b5709a m4a audio only DASH audio 99k , m4a_dash container, opus (48000Hz)
dash-akfire_interconnect_quic_sep-audio-ea18f4fb m4a audio only DASH audio 127k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-fastly_skyfire_sep-audio-ea18f4fb m4a audio only DASH audio 127k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-akfire_interconnect_quic_sep-audio-449c0d17 m4a audio only DASH audio 191k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-fastly_skyfire_sep-audio-449c0d17 m4a audio only DASH audio 191k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-akfire_interconnect_quic_sep-audio-bf242b57 m4a audio only DASH audio 255k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-fastly_skyfire_sep-audio-bf242b57 m4a audio only DASH audio 255k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-akfire_interconnect_quic_sep-video-f73b48d3 mp4 426x240 DASH video 341k , mp4_dash container, avc1.640015, 25fps, video only
dash-fastly_skyfire_sep-video-f73b48d3 mp4 426x240 DASH video 341k , mp4_dash container, avc1.640015, 25fps, video only
hls-akfire_interconnect_quic_sep-435 mp4 426x240 435k , avc1.640015, 25.0fps, video only
hls-fastly_skyfire_sep-435 mp4 426x240 435k , avc1.640015, 25.0fps, video only
dash-akfire_interconnect_quic_sep-video-ea18f4fb mp4 640x360 DASH video 777k , mp4_dash container, avc1.64001E, 25fps, video only
dash-fastly_skyfire_sep-video-ea18f4fb mp4 640x360 DASH video 777k , mp4_dash container, avc1.64001E, 25fps, video only
hls-akfire_interconnect_quic_sep-809 mp4 640x360 809k , avc1.64001E, 25.0fps, video only
hls-fastly_skyfire_sep-809 mp4 640x360 809k , avc1.64001E, 25.0fps, video only
hls-akfire_interconnect_quic_sep-1357 mp4 960x540 1357k , avc1.64001F, 25.0fps, video only
hls-fastly_skyfire_sep-1357 mp4 960x540 1357k , avc1.64001F, 25.0fps, video only
dash-akfire_interconnect_quic_sep-video-bf242b57 mp4 960x540 DASH video 1614k , mp4_dash container, avc1.64001F, 25fps, video only
dash-fastly_skyfire_sep-video-bf242b57 mp4 960x540 DASH video 1614k , mp4_dash container, avc1.64001F, 25fps, video only
http-240p mp4 426x240 25fps
hls-akfire_interconnect_quic-372 mp4 426x240 372k , avc1.640015, 25.0fps, mp4a.40.2
hls-fastly_skyfire-372 mp4 426x240 372k , avc1.640015, 25.0fps, mp4a.40.2
dash-akfire_interconnect_quic-video-f73b48d3 mp4 426x240 DASH video 405k , mp4_dash container, avc1.640015, 25fps, mp4a.40.2 (24000Hz)
dash-fastly_skyfire-video-f73b48d3 mp4 426x240 DASH video 405k , mp4_dash container, avc1.640015, 25fps, mp4a.40.2 (24000Hz)
http-360p mp4 640x360 25fps
hls-akfire_interconnect_quic-809 mp4 640x360 809k , avc1.64001E, 25.0fps, mp4a.40.2
hls-fastly_skyfire-809 mp4 640x360 809k , avc1.64001E, 25.0fps, mp4a.40.2
dash-akfire_interconnect_quic-video-ea18f4fb mp4 640x360 DASH video 904k , mp4_dash container, avc1.64001E, 25fps, mp4a.40.2 (48000Hz)
dash-fastly_skyfire-video-ea18f4fb mp4 640x360 DASH video 904k , mp4_dash container, avc1.64001E, 25fps, mp4a.40.2 (48000Hz)
http-540p mp4 960x540 25fps
hls-akfire_interconnect_quic-1485 mp4 960x540 1485k , avc1.64001F, 25.0fps, mp4a.40.2
hls-fastly_skyfire-1485 mp4 960x540 1485k , avc1.64001F, 25.0fps, mp4a.40.2
dash-akfire_interconnect_quic-video-bf242b57 mp4 960x540 DASH video 1869k , mp4_dash container, avc1.64001F, 25fps, mp4a.40.2 (48000Hz)
dash-fastly_skyfire-video-bf242b57 mp4 960x540 DASH video 1869k , mp4_dash container, avc1.64001F, 25fps, mp4a.40.2 (48000Hz) (best)
$ |
Thanks for fixing this problem. Please excuse my ignorance of the process, but how can I get a Windows EXE that incorporates this fix? |
@hms54 I assume this fix will eventually get pushed to an official release, at which time you should be able to update with youtube-dl -U In the mean time, I got the fix to work by downloading the source code from the last official release, changing the code as per @dirkf 's fix, (any text editor can be used to change the code), and then running the python code directly from the command line with python -m youtube_dl -v [target url here]. |
Thanks, @Phenomniverse. I will give that a try. I'm using another download tool that relies on youtube-dl and am not sure I can make it work with the python script. But this may be a reasonable workaround until the new executable is distributed. |
I was able to install Python to my Windows PC, install the youtube-dl module using pip, locate and patch vimeo.py, and successfully execute a player.vimeo.com download with the command you provided. Thanks. |
The best way to use pip is to use it to install the git master. Then you get all the other fixes/improvements/new bugs at the same time:
|
Also note this work-around:
|
new regex \b(?:playerC|c)onfig\s*=\s*({.+?})(?:\s*;|\n)
|
This commit needs to pushed to the master branch. |
Bang on, thanks. Of course, non-strict JS can end a statement with newline as well as |
How can i get the pathed version, i downloaded the master branch but it didn't work |
i think the regex is broken again, but here is how i fixed it on my end: |
Final, I hope, fix merged as a96a45b. |
Checklist
Verbose log
Description
Attempting to download a Vimeo video. The exact same URL opens just fine in a browser.
Tried the workarounds suggested in similar issues, no success.
The text was updated successfully, but these errors were encountered: