1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

add '--zip' and '--ugoira-conv' command-line options

This commit is contained in:
Mike Fährmann 2018-06-18 18:14:38 +02:00
parent eb7a1f3b98
commit 709c5d466d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -251,6 +251,20 @@ def build_parser():
"and other delegated URLs"),
)
postprocessor = parser.add_argument_group("Post-processing Options")
postprocessor.add_argument(
"--zip",
action=ConfigConstAction, nargs=0,
dest="postprocessors", const=({"name": "zip"},),
help="Store downloaded files in a ZIP archive",
)
postprocessor.add_argument(
"--ugoira-conv",
action=ConfigConstAction, nargs=0,
dest="postprocessors", const=({"name": "ugoira"},),
help="Convert Pixiv Ugoira to WebM",
)
parser.add_argument(
"urls",
nargs="*", metavar="URL",