From 3bf7c0b6070b94dca3177a9fbcf402bf90cb5487 Mon Sep 17 00:00:00 2001 From: bashonly Date: Tue, 22 Apr 2025 14:44:52 -0500 Subject: [PATCH] [ie/vimeo] Fix API extraction Authored by: bashonly --- yt_dlp/extractor/vimeo.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/vimeo.py b/yt_dlp/extractor/vimeo.py index 8a0aaaa464..2fd314aa17 100644 --- a/yt_dlp/extractor/vimeo.py +++ b/yt_dlp/extractor/vimeo.py @@ -244,9 +244,13 @@ class VimeoBaseInfoExtractor(InfoExtractor): join_nonempty(f'https://api.vimeo.com/videos/{video_id}', unlisted_hash, delim=':'), video_id, 'Downloading API JSON', headers={ 'Authorization': f'jwt {jwt_token}', - 'Accept': 'application/json', + 'Accept': 'application/vnd.vimeo.*+json;version=3.4.10', }, query={ + # TODO: Reverse-engineer generating the 'anon_signature' param + # Ref: https://f.vimeocdn.com/js_opt/app/vimeo-next/_next/static/chunks/60908-af70235e46909bce.js + 'outro': 'beginning', # Needed to avoid https://github.com/yt-dlp/yt-dlp/issues/12974 'fields': ','.join(( + # 'embed_player_config_url' is a viable alternative to 'config_url' 'config_url', 'created_time', 'description', 'download', 'license', 'metadata.connections.comments.total', 'metadata.connections.likes.total', 'release_time', 'stats.plays')),