A feature-rich command-line audio/video downloader
Switch some calls to to_stderr to report_error and report_warning
Jaime Marquínez Ferrándizbbcbf4d459fa
diff --git a/youtube_dl/PostProcessor.py b/youtube_dl/PostProcessor.pyindex 8c5e539917..4f0a165ba6 100644--- a/youtube_dl/PostProcessor.py+++ b/youtube_dl/PostProcessor.py@@ -208,7 +208,7 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):try:os.utime(encodeFilename(new_path), (time.time(), information['filetime']))except:- self._downloader.to_stderr(u'WARNING: Cannot update utime of audio file')+ self._downloader.report_warning(u'Cannot update utime of audio file')information['filepath'] = new_pathreturn self._nopostoverwrites,informationdiff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.pyindex c76f1118ee..4968669002 100644--- a/youtube_dl/YoutubeDL.py+++ b/youtube_dl/YoutubeDL.py@@ -594,7 +594,7 @@ class YoutubeDL(object):# No clear decision yet, let IE decidekeep_video = keep_video_wishexcept PostProcessingError as e:- self.to_stderr(u'ERROR: ' + e.msg)+ self.report_error(e.msg)if keep_video is False and not self.params.get('keepvideo', False):try:self.to_screen(u'Deleting original file %s (pass -k to keep)' % filename)