diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-26 15:52:04 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-26 15:53:22 +0530 |
commit | 2d6921210d1cf04f041787b527af99a8488780c4 (patch) | |
tree | ec29800652074dfc2e221315966dc89b4da76483 /youtube_dlc/postprocessor/common.py | |
parent | f137c99e9fa6c57d5d44e566ff540e2f92b6923d (diff) | |
download | hypervideo-pre-2d6921210d1cf04f041787b527af99a8488780c4.tar.lz hypervideo-pre-2d6921210d1cf04f041787b527af99a8488780c4.tar.xz hypervideo-pre-2d6921210d1cf04f041787b527af99a8488780c4.zip |
[postprocessor] fix write_debug when no _downloader
Diffstat (limited to 'youtube_dlc/postprocessor/common.py')
-rw-r--r-- | youtube_dlc/postprocessor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dlc/postprocessor/common.py b/youtube_dlc/postprocessor/common.py index 7fb85413f..b641099e6 100644 --- a/youtube_dlc/postprocessor/common.py +++ b/youtube_dlc/postprocessor/common.py @@ -56,7 +56,7 @@ class PostProcessor(object): 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): |