diff options
Diffstat (limited to 'gallery_dl/option.py')
| -rw-r--r-- | gallery_dl/option.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gallery_dl/option.py b/gallery_dl/option.py index 0189c0e..c4f5b94 100644 --- a/gallery_dl/option.py +++ b/gallery_dl/option.py @@ -131,12 +131,17 @@ class UgoiraAction(argparse.Action): "[a] palettegen [p];[b][p] paletteuse"), "repeat-last-frame": False, } - elif value in ("mkv", "copy"): + elif value == "mkv" or value == "copy": pp = { "extension" : "mkv", "ffmpeg-args" : ("-c:v", "copy"), "repeat-last-frame": False, } + elif value == "zip" or value == "archive": + pp = { + "mode" : "archive", + } + namespace.options.append(((), "ugoira", "original")) else: parser.error("Unsupported Ugoira format '{}'".format(value)) @@ -344,7 +349,7 @@ def build_parser(): ) output.add_argument( "--list-extractors", - dest="list_extractors", action="store_true", + dest="list_extractors", metavar="CATEGORIES", nargs="*", help=("Print a list of extractor classes " "with description, (sub)category and example URL"), ) @@ -693,7 +698,7 @@ def build_parser(): dest="postprocessors", metavar="FMT", action=UgoiraAction, help=("Convert Pixiv Ugoira to FMT using FFmpeg. " "Supported formats are 'webm', 'mp4', 'gif', " - "'vp8', 'vp9', 'vp9-lossless', 'copy'."), + "'vp8', 'vp9', 'vp9-lossless', 'copy', 'zip'."), ) postprocessor.add_argument( "--ugoira-conv", |
