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:
parent
ac2145ebcd
commit
1f16d408c5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user