1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-24 14:32:54 +08:00

Added try clause

For the case multiple videos are passed to youtube-dl and one of them throw an error. 
This let the program go on
This commit is contained in:
flatt3rn 2017-01-03 00:05:01 +01:00 committed by GitHub
parent ac2145ebcd
commit 1f16d408c5

View File

@ -1787,8 +1787,11 @@ class YoutubeDL(object):
for url in url_list:
try:
# It also downloads the videos
try:
res = self.extract_info(
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
except:
pass
except UnavailableVideoError:
self.report_error('unable to download video')
except MaxDownloadsReached: