fix: actually fall back to the android_vr extractor

This commit is contained in:
2025-10-01 09:10:15 +02:00
parent a2e2fedc90
commit 365c54d214

View File

@@ -151,6 +151,8 @@ def extract(url: str, getcomments=False, maxcomments="", manifest_fix=False):
ytdl_context['extractor_args']['youtube']['player_client'] = ['default', 'web_safari']
elif ythdd_globals.config['extractor']['preferred_extractor']:
ytdl_context['extractor_args']['youtube']['player_client'] = [ythdd_globals.config['extractor']['preferred_extractor']]
else:
ytdl_context['extractor_args']['youtube']['player_client'] = ['android_vr']
with yt_dlp.YoutubeDL(ytdl_opts) as ytdl:
result = ytdl.sanitize_info(ytdl.extract_info(url, download=False))
return result