From e93b8efe7b68aec7cda2d7b8f3ce234756673263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 28 Oct 2024 14:49:52 +0100 Subject: [PATCH] [output] make it easier to disable output to stdout allow 'output.mode' to be set to any falsy value instead of requiring it to be the string "null" --- gallery_dl/output.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gallery_dl/output.py b/gallery_dl/output.py index 13b6a8aa..646795c3 100644 --- a/gallery_dl/output.py +++ b/gallery_dl/output.py @@ -331,6 +331,8 @@ def select(): output = PipeOutput() elif isinstance(mode, dict): output = CustomOutput(mode) + elif not mode: + output = NullOutput() else: output = { "default" : PipeOutput,