From 1f16d408c52bd5803241931048f8953100ca3f1c Mon Sep 17 00:00:00 2001 From: flatt3rn Date: Tue, 3 Jan 2017 00:05:01 +0100 Subject: [PATCH] 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 --- youtube_dl/YoutubeDL.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 53f20ac2c..2e66d54c7 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -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: