1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-21 18:22:30 +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:
Mike Fährmann 2024-10-28 14:49:52 +01:00
parent 2bbae0e98d
commit e93b8efe7b
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -331,6 +331,8 @@ def select():
output = PipeOutput()
elif isinstance(mode, dict):
output = CustomOutput(mode)
elif not mode:
output = NullOutput()
else:
output = {
"default" : PipeOutput,