Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
I'm integrating youtube_dl in a python script with the following configuration:
and the download code:
However, if the downloaded failed because the file size exceeds, the call returns 0 (there has been no problem) so there is no way of knowing that actually the download failed.
I propose that the downloaders throw an exception when they cannot met a parameter:
in
youtube_dl/downloader/http.py:or update YoutubeDL class to process
Falseas a result of a call to download and set a corresponding retvalue to a value different than 0 to notify the main process that the download actually failed.Thank you.