Skip to content

Commit

Permalink
[YoutubeDL] Write static debug to stderr and respect quiet for dynami…
Browse files Browse the repository at this point in the history
…c debug (closes ytdl-org#14579, closes ytdl-org#22593)

TODO: logging and verbosity needs major refactoring (refs ytdl-org#10894)
  • Loading branch information
dstftw committed Nov 28, 2020
1 parent f04cfe2 commit 9585b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ def is_wellformed(f):
if req_format is None:
req_format = self._default_format_spec(info_dict, download=download)
if self.params.get('verbose'):
self.to_stdout('[debug] Default format spec: %s' % req_format)
self._write_string('[debug] Default format spec: %s\n' % req_format)

format_selector = self.build_format_selector(req_format)

Expand Down Expand Up @@ -1871,7 +1871,7 @@ def dl(name, info):
for ph in self._progress_hooks:
fd.add_progress_hook(ph)
if self.params.get('verbose'):
self.to_stdout('[debug] Invoking downloader on %r' % info.get('url'))
self.to_screen('[debug] Invoking downloader on %r' % info.get('url'))
return fd.download(name, info)

if info_dict.get('requested_formats') is not None:
Expand Down

0 comments on commit 9585b37

Please sign in to comment.