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.
How to ignore exceptions caused while downloading multiple videos #8442
Comments
|
Post the full source and playlist URL. |
|
I cannot post full source code as it is proprietary. ydl_opts = {'ignoreerros':True,'progress_hooks': [my_hook],'format': fmt,'writeinfojson':True,'logger': MyLogger()} The above is the heart of my code. kfchvCyHmsc,18 IF any of the above video does not exist, I need my code to continue downloading preceding videos. But as soon as a video is not found, the script terminates. how can I handle this? |
Perfectly skips as expected. |
|
Thank you @dstftw |
I'm trying to develop a python script to download a bunch of youtube videos which are inputted from a csv file using the youtube-dl module. The script stops as the download fails for a single video. I need the script to continue downloading the next videos ignoring the videos that cannot be downloaded. Can some one please help me on how to handle this in python?
My python code has ignoreerrors option enabled: ydl_opts = {'ignoreerrors':True,'progress_hooks': [my_hook],'format': fmt,'writeinfojson':True,'logger': MyLogger()} with youtube_dl.YoutubeDL(ydl_opts) as ydl: ydl.download([URL])
But it is not able to bypass and program exits with below error message ERROR: VqzpEw69Tze: YouTube said: This video does not exist