Fixed video download error by enabling authentication

pull/1605/head
Josh Holly 2 years ago
parent f2d89a10dd
commit dcbf3d6fe7
No known key found for this signature in database
GPG Key ID: D4F1282846547F07

@ -72,7 +72,7 @@ def download_background(background_config: Tuple[str, str, str, Any]):
)
print_substep("Downloading the backgrounds videos... please be patient 🙏 ")
print_substep(f"Downloading {filename} from {uri}")
YouTube(uri, on_progress_callback=on_progress).streams.filter(
YouTube(uri, use_oauth=True, allow_oauth_cache=True, on_progress_callback=on_progress).streams.filter(
res="1080p"
).first().download("assets/backgrounds", filename=f"{credit}-{filename}")
print_substep("Background video downloaded successfully! 🎉", style="bold green")

Loading…
Cancel
Save