aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorJuan M <joksnet@gmail.com>2013-02-23 22:52:52 +0100
committerJuan M <joksnet@gmail.com>2013-02-23 22:52:52 +0100
commit35d217133ffe1f14dfa395020ae3afade8fcea37 (patch)
tree9d2765e53cdf8b8745a70a296be8ad734da3aa17 /youtube_dl/FileDownloader.py
parent4be0aa35393ccd0af72741eb0f6f97920399893d (diff)
Message for delete video it's not an error.
When using youtube-dl from another python script with the quiet option on, and a post procesor for extract the audio. The message of deleting video shows in the first script logs (as it goes to stderr). There is no way to keep this quiet as it's treated as an error, even if, for me, it's not.
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index 53c2d1dce..192ad37d2 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -552,7 +552,7 @@ class FileDownloader(object):
self.to_stderr(u'ERROR: ' + e.msg)
if keep_video is False and not self.params.get('keepvideo', False):
try:
- self.to_stderr(u'Deleting original file %s (pass -k to keep)' % filename)
+ self.to_screen(u'Deleting original file %s (pass -k to keep)' % filename)
os.remove(encodeFilename(filename))
except (IOError, OSError):
self.to_stderr(u'WARNING: Unable to remove downloaded video file')