diff options
| author | 2019-12-25 19:40:28 -0500 | |
|---|---|---|
| committer | 2019-12-25 19:40:28 -0500 | |
| commit | f9a1a9dcb7df977eeac9544786df9c0b93795815 (patch) | |
| tree | 8cb69cf7685da8d7e4deb7dc1d6b209098e1ddfb /gallery_dl/output.py | |
| parent | 0c73e982fa596da07f23b377621ab894a9e64884 (diff) | |
New upstream version 1.12.1upstream/1.12.1
Diffstat (limited to 'gallery_dl/output.py')
| -rw-r--r-- | gallery_dl/output.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gallery_dl/output.py b/gallery_dl/output.py index 87c5006..38e2f60 100644 --- a/gallery_dl/output.py +++ b/gallery_dl/output.py @@ -83,7 +83,7 @@ def initialize_logging(loglevel): def setup_logging_handler(key, fmt=LOG_FORMAT, lvl=LOG_LEVEL): """Setup a new logging handler""" - opts = config.interpolate(("output", key)) + opts = config.interpolate(("output",), key) if not opts: return None if not isinstance(opts, dict): @@ -114,7 +114,7 @@ def setup_logging_handler(key, fmt=LOG_FORMAT, lvl=LOG_LEVEL): def configure_logging_handler(key, handler): """Configure a logging handler""" - opts = config.interpolate(("output", key)) + opts = config.interpolate(("output",), key) if not opts: return if isinstance(opts, str): @@ -156,7 +156,7 @@ def select(): "color": ColorOutput, "null": NullOutput, } - omode = config.get(("output", "mode"), "auto").lower() + omode = config.get(("output",), "mode", "auto").lower() if omode in pdict: return pdict[omode]() elif omode == "auto": @@ -192,7 +192,7 @@ class PipeOutput(NullOutput): class TerminalOutput(NullOutput): def __init__(self): - self.short = config.get(("output", "shorten"), True) + self.short = config.get(("output",), "shorten", True) if self.short: self.width = shutil.get_terminal_size().columns - OFFSET |
