1
0

Add ignore errors option for youtube-dl (#10)

This makes sure that the script continues if youtube-dl is unable to download one of the video's
This commit is contained in:
Jelle Besseling 2018-08-14 16:39:44 +02:00 committed by Damien
parent de0f03a4f1
commit 656dcae1f9

2
dl.py
View File

@ -47,7 +47,7 @@ else:
else:
print(str(len(videos))+' new videos found')
ydl_opts = {}
ydl_opts = {'ignoreerrors': True}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(videos)