mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-12 02:01:05 +01:00
[postprocessor] fix write_debug when no _downloader
This commit is contained in:
parent
f137c99e9f
commit
2d6921210d
@ -56,7 +56,7 @@ def report_error(self, text, *args, **kwargs):
|
||||
|
||||
def write_debug(self, text, prefix=True, *args, **kwargs):
|
||||
tag = '[debug] ' if prefix else ''
|
||||
if self.get_param('verbose', False):
|
||||
if self.get_param('verbose', False) and self._downloader:
|
||||
return self._downloader.to_screen('%s%s' % (tag, text), *args, **kwargs)
|
||||
|
||||
def get_param(self, name, default=None, *args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user