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:
|
for url in url_list:
|
||||||
try:
|
try:
|
||||||
# It also downloads the videos
|
# It also downloads the videos
|
||||||
|
try:
|
||||||
res = self.extract_info(
|
res = self.extract_info(
|
||||||
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
|
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
except UnavailableVideoError:
|
except UnavailableVideoError:
|
||||||
self.report_error('unable to download video')
|
self.report_error('unable to download video')
|
||||||
except MaxDownloadsReached:
|
except MaxDownloadsReached:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user