potential fix for #217

This commit is contained in:
ArabCoders 2025-03-17 23:35:18 +03:00
parent 6f71c5ceda
commit c287c55773

View file

@ -126,7 +126,7 @@ def extract_info(
data = yt_dlp.YoutubeDL(params=params).extract_info(url, download=False)
if follow_redirect and "_type" in data and "url" == data["_type"]:
if data and follow_redirect and "_type" in data and "url" == data["_type"]:
return extract_info(config, data["url"], debug=debug, no_archive=no_archive, follow_redirect=follow_redirect)
return data