mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 04:02:32 +01:00
[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"
This commit is contained in:
parent
2bbae0e98d
commit
e93b8efe7b
@ -331,6 +331,8 @@ def select():
|
||||
output = PipeOutput()
|
||||
elif isinstance(mode, dict):
|
||||
output = CustomOutput(mode)
|
||||
elif not mode:
|
||||
output = NullOutput()
|
||||
else:
|
||||
output = {
|
||||
"default" : PipeOutput,
|
||||
|
Loading…
Reference in New Issue
Block a user