]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
YoutubeIE: report warnings instead of errors if the subtitles are not found (related...
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 22 Jun 2013 12:15:33 +0000 (14:15 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 22 Jun 2013 12:15:33 +0000 (14:15 +0200)
For example when downloading a playlist some videos may not have subtitles but the download shouldn't stop.

youtube_dl/InfoExtractors.py

index 15417f05a89899b7d0f06cd094998894fcc56d1e..619ddeba1c8ff06587d4c4945aff0c679053555f 100755 (executable)
@@ -699,14 +699,14 @@ class YoutubeIE(InfoExtractor):
                         pass
                     else:
                         # We report the original error
-                        self._downloader.report_error(sub_error)
+                        self._downloader.report_warning(sub_error)
 
         if self._downloader.params.get('allsubtitles', False):
             video_subtitles = self._extract_all_subtitles(video_id)
             for video_subtitle in video_subtitles:
                 (sub_error, sub_lang, sub) = video_subtitle
                 if sub_error:
-                    self._downloader.report_error(sub_error)
+                    self._downloader.report_warning(sub_error)
 
         if self._downloader.params.get('listsubtitles', False):
             sub_lang_list = self._list_available_subtitles(video_id)