154 Commits

Author SHA1 Message Date
Mike Fährmann
e9989ff7bd [options] add '--config-json' command-line option 2026-02-14 19:33:33 +01:00
Mike Fährmann
98eb857794 [pp:exec] use non-UNC path replacements (#8879)
provide '{_path_unc}' and '{_directory_unc}' replacement fields
2026-02-14 12:09:54 +01:00
Mike Fährmann
d2477a94af [options] add 'sleep-retries' option 2026-02-13 18:04:05 +01:00
Mike Fährmann
0f41f343f4 implement linear/exponential backoff for 'sleep-429' 2026-02-12 19:23:29 +01:00
Mike Fährmann
09dbdee2db [options] use '"ugoira": "original"' by default 2026-02-11 16:46:38 +01:00
Mike Fährmann
e3868fb21c [options] use 'yuv420p' output pixel format for ugoira presets 2026-02-11 16:43:46 +01:00
Mike Fährmann
56f2790626 [options] add '--config-type' command-line option
can also be set via 'GDL_CONFIG_TYPE' environment variable
9fd732afe8
2026-02-07 21:47:17 +01:00
Mike Fährmann
df8aaa7e22 [options] add '--restrict-filenames' & '--windows-filenames' 2026-02-05 09:32:24 +01:00
Mike Fährmann
3d36ee0e53 [common] support multiple codes/blocks for '--xff'
for example '--xff JP,CN,105.48.0.0/12'
2026-02-04 20:58:59 +01:00
Mike Fährmann
947085c6e3 [common] add '--xff' / 'geo-bypass' option 2026-02-04 18:45:02 +01:00
Mike Fährmann
87323fd71e rename 'image-*' & 'chapter-*' options to 'file-*' & 'child-*'
keep support for both names, e.g. file-filter & image-filter,
while prioritizing the new names
2026-02-02 18:01:45 +01:00
Mike Fährmann
c42a5dce5c [pp] add 'child' & 'child-after' events 2026-02-01 22:14:14 +01:00
Mike Fährmann
19a27a47b3 [options] add '--sleep-skip' option (#6582)
https://github.com/mikf/gallery-dl/issues/6582#issuecomment-3677460485
2025-12-20 19:06:11 +01:00
Mike Fährmann
5da200945b implement 'post-filter' & 'post-range' options
(#8643)
2025-12-05 16:40:23 +01:00
Mike Fährmann
35bf1a2a0a [options] remove custom Formatter.format_help()
fixes superfluous newlines in --version output
2025-09-05 22:21:09 +02:00
Mike Fährmann
dadf405803 [options] add '-a' as short option for '--user-agent' 2025-08-26 07:40:55 +02:00
Mike Fährmann
a01c0f99fd [options] update '-T' to match '-A' behavior (#7978)
2eb5e52055
2025-08-05 19:56:39 +02:00
Mike Fährmann
2eb5e52055 extend '-A / --abort' & '"skip": "abort"' functionality (#7891)
implement ascending by more than 1 level or
up to an extractor with a specific subcategory
2025-07-30 00:01:49 +02:00
Mike Fährmann
05cba49062 [options] add '--sleep-429' command-line option (#7871) 2025-07-22 20:57:54 +02:00
Mike Fährmann
d9a650d547 [options] add '--compat' command-line option 2025-07-14 18:52:39 +02:00
Mike Fährmann
9dec26108e [option] slightly reword --download-archive help text (#7751)
to reflect the current default of *not* recording skipped files
2025-06-30 08:55:46 +02:00
Mike Fährmann
9dbe33b6de replace old %-formatted and .format(…) strings with f-strings (#7671)
mostly using flynt
https://github.com/ikamensh/flynt
2025-06-29 17:50:19 +02:00
Mike Fährmann
2cbc5cc454 [options] swap --print and --Print semantics
--print now outputs values without downloading files
--Print now outputs values AND downloads files

add --Print-to-file with the same difference to --print-to-file
2025-06-22 18:19:41 +02:00
Mike Fährmann
60cb4468b2 [options] update --help Usage formatting 2025-06-20 23:43:22 +02:00
Mike Fährmann
8a35863e86 [options] add '--Print' command-line option 2025-06-20 16:32:48 +02:00
Mike Fährmann
e08ec7e083 update copyright notices 2025-06-13 00:03:41 +02:00
Mike Fährmann
a25e14e776 [dl:http] implement dynamic download 'rate' limits (#7638) 2025-06-08 20:04:31 +02:00
Mike Fährmann
93adc86dca improve '\f' format string handling for --print
add a newline only for f-string / \fF format strings,
as it would break any of the others
2025-02-08 21:42:31 +01:00
Mike Fährmann
e2134b349d replace '\f' in --print arguments with form feed character
to make it easier to use special type format strings on command-line
(#6938)
2025-02-07 19:37:33 +01:00
Mike Fährmann
a3b9cc7785 [options] mark '--list-extractors' argument as optional 2025-01-05 21:37:44 +01:00
Mike Fährmann
cd6d6ea8be [options] fix passing negative numbers as arguments (#5262)
https://github.com/mikf/gallery-dl/issues/5262#issuecomment-2468677453

fixes regression introduced in 9e729681

'argparse' sets a flag and changes its behavior when using something
that looks like a negative number as option string, '-4' and '-6' in
this case.
2024-11-11 19:07:37 +01:00
Mike Fährmann
9e72968154 add '-4/--force-ipv4' and '-6/--force-ipv6' command-line options 2024-11-08 16:37:14 +01:00
Mike Fährmann
10c56a561d add '--print' and '--print-to-file' command-line options 2024-10-20 10:06:04 +02:00
Mike Fährmann
ff07aef776 [pp:ugoira] implement storing "original" frames in archives (#6147)
… by using '"mode": "archive"'

- rename 'ffmpeg-demuxer' option to 'mode'
- add 'metadata' option
- add 'zip' as a possible `--ugoira` format

TODO: adjust file mtimes inside archives when 'mtime' is enabled
2024-09-09 21:41:37 +02:00
Mike Fährmann
4da3347d18 allow filtering '--list-extractors' results
with blacklist/whitelist syntax, e.g.

--list-extractors pixiv
--list-extractors pixiv:user pixiv:work
--list-extractors :search
2024-09-08 09:27:32 +02:00
Mike Fährmann
0b3d7280dc do not override '"ugoira": "original"' when using '--ugoira' (#6056) 2024-09-05 20:26:57 +02:00
Mike Fährmann
359572162b [pp:rename] improve renaming files 'to' a format (#5846, #6044) 2024-09-03 21:17:31 +02:00
Mike Fährmann
60b655429f add '--rename' and '--rename-to' command-line options (#5846, #6044) 2024-08-30 18:22:46 +02:00
Mike Fährmann
2d55521582 [cookies:firefox] extract only cookies without container by default (#5957)
add support for 'all' to extract all cookies regardless of container
2024-08-14 18:59:41 +02:00
Mike Fährmann
9db361e4cd remove debug remains 2024-08-12 08:00:59 +02:00
Mike Fährmann
8ecd408f53 add '-J/--resolve-json' command-line option (#5864) 2024-07-26 20:41:35 +02:00
Mike Fährmann
b3aded1939 add '--print-traffic' 2024-07-05 21:34:33 +02:00
Mike Fährmann
a1bb32792b do not try to read from stdin when it is non-interactive (#5733)
add '--no-input' command-line option and 'input' config file option
to allow users to manually configure this
2024-06-16 18:31:39 +02:00
Mike Fährmann
76385f5f18 re-categorize some command-line options in --help 2024-06-15 23:29:09 +02:00
Mike Fährmann
3fc2e61818 add '--config-open' and '--config-status' (#5713)
adapted from 119a25a59cd07781844136ed3d360e7d820b112c
2024-06-13 23:22:56 +02:00
Mike Fährmann
53aadb0c44 [update] implement '--update-to'
to switch between update channels (stable or dev (alias nightly & master))
or to install a specific version

Examples:
--update-to dev
--update-to dev@2024.05.25
--update-to v1.25.2
2024-05-28 20:40:03 +02:00
Mike Fährmann
5018bd42f8 [update] implement '--update-check'
to check if a new update is available without downloading it
2024-05-28 03:42:58 +02:00
Mike Fährmann
2e323ef0a2 [update] implement '-U/--update'
to auto-update executable files in-place
2024-05-28 02:26:13 +02:00
Mike Fährmann
bef0bd3b49 add '--no-colors' command-line option 2024-04-20 21:06:59 +02:00
Aidan Harris
a2affdcef3 re-order verbose and warning options 2024-04-14 13:15:07 +00:00