From 709c5d466d6fb975aac35ec5435e5f3ae731b377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 18 Jun 2018 18:14:38 +0200 Subject: [PATCH] add '--zip' and '--ugoira-conv' command-line options --- gallery_dl/option.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gallery_dl/option.py b/gallery_dl/option.py index 45a4a99f..aed68c89 100644 --- a/gallery_dl/option.py +++ b/gallery_dl/option.py @@ -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",