|
|
@ -658,12 +658,10 @@ class YoutubeDL(object):
|
|
|
|
"""Print message to stdout"""
|
|
|
|
"""Print message to stdout"""
|
|
|
|
if self.params.get('logger'):
|
|
|
|
if self.params.get('logger'):
|
|
|
|
self.params['logger'].debug(message)
|
|
|
|
self.params['logger'].debug(message)
|
|
|
|
elif not quiet:
|
|
|
|
elif not quiet or self.params.get('verbose'):
|
|
|
|
message = self._bidi_workaround(message)
|
|
|
|
self._write_string(
|
|
|
|
terminator = ['\n', ''][skip_eol]
|
|
|
|
'%s%s' % (self._bidi_workaround(message), ('' if skip_eol else '\n')),
|
|
|
|
output = message + terminator
|
|
|
|
self._err_file if quiet else self._screen_file)
|
|
|
|
|
|
|
|
|
|
|
|
self._write_string(output, self._screen_file)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def to_stderr(self, message):
|
|
|
|
def to_stderr(self, message):
|
|
|
|
"""Print message to stderr"""
|
|
|
|
"""Print message to stderr"""
|
|
|
@ -671,9 +669,7 @@ class YoutubeDL(object):
|
|
|
|
if self.params.get('logger'):
|
|
|
|
if self.params.get('logger'):
|
|
|
|
self.params['logger'].error(message)
|
|
|
|
self.params['logger'].error(message)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
message = self._bidi_workaround(message)
|
|
|
|
self._write_string('%s\n' % self._bidi_workaround(message), self._err_file)
|
|
|
|
output = message + '\n'
|
|
|
|
|
|
|
|
self._write_string(output, self._err_file)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def to_console_title(self, message):
|
|
|
|
def to_console_title(self, message):
|
|
|
|
if not self.params.get('consoletitle', False):
|
|
|
|
if not self.params.get('consoletitle', False):
|
|
|
|