Mike Fährmann
b46169cfd2
add 'input-files' config option ( #6059 )
3 weeks ago
Mike Fährmann
8ecd408f53
add '-J/--resolve-json' command-line option ( #5864 )
2 months ago
Mike Fährmann
f7383a56f8
wrap filters/conditionals in a try-except block
...
allows accessing undefined fields without exception or locals().get(…)
but hides mistakes/typos/etc by evaluating to False without feedback
performance loss compared to the previous version without try-except
is negligible (~20ns for me)
2 months ago
Mike Fährmann
b3aded1939
add '--print-traffic'
3 months ago
Mike Fährmann
c9860002ba
[actions] add 'abort' and 'terminate' actions ( #5778 )
3 months ago
Mike Fährmann
3fc2e61818
add '--config-open' and '--config-status' ( #5713 )
...
adapted from 119a25a59c
3 months ago
Mike Fährmann
7ba2b209f1
fix exit status of --clear-cache/--list-modules/--list-extractors
...
All three would always cause gallery-dl to exit with status 1,
regardless of error or success.
4 months ago
Mike Fährmann
2e323ef0a2
[update] implement '-U/--update'
...
to auto-update executable files in-place
4 months ago
Mike Fährmann
601f5becc8
[version] add __variant__
...
Specifies origin and OS of executable files.
For example 'stable/windows'.
4 months ago
Mike Fährmann
dc9d83e64b
[output] support 'NO_COLOR' environment variable
5 months ago
Mike Fährmann
bef0bd3b49
add '--no-colors' command-line option
5 months ago
Mike Fährmann
20e2c0042b
[output] enable colors by default
5 months ago
Aidan Harris
a3f580254a
Add warnings flag
...
This commit adds a warnings flag
It can be combined with -q / --quiet to display warnings.
The intent is to provide a silent option that still surfaces
warning and error messages so that they are visible in logs.
5 months ago
Mike Fährmann
b1c175fdd1
allow using an empty string as argument for -D/--directory
8 months ago
Mike Fährmann
75697dfb26
implement -e/--error-file as a logging handler
...
similar to --write-unsupported
10 months ago
Mike Fährmann
042a9da451
add 'output.errorfile' config option
10 months ago
Mike Fährmann
99b76628f7
implement '-e/--error-file' command-line option ( #4732 )
...
copying per-URL options from regular, read-only input files
does currently not work
10 months ago
Mike Fährmann
b714df5a16
disable 'downloader.progress' when using -q/--quiet ( #4810 )
...
it didn't produce any output since output.mode is set to to "null",
but it caused some unnecessary function calls
10 months ago
Mike Fährmann
4700051562
rework and extend input file processing ( #4732 )
...
- add 2 command-line options to modify input file contents
- -I/--input-file-comment
- -x/--input-file-delete
- implement InputManager class
- move code from util.py to __init__.py
(mainly to avoid import cycles)
10 months ago
Mike Fährmann
4cdab8074e
update/fix --list-extractors
1 year ago
Mike Fährmann
92f98e6f5e
'sys.exit' -> 'SystemExit'
1 year ago
Mike Fährmann
410f783a33
implement 'subconfigs' option ( #4440 )
1 year ago
Mike Fährmann
a14b63d941
support selecting a domain for '--cookies-from-browser'
...
for example 'gallery-dl --cookies-from-browser firefox/twitter.com'
1 year ago
Mike Fährmann
a1ca2404f9
add 'globals' instead of overwriting the default ( #3773 )
2 years ago
Mike Fährmann
075c965512
add '--config-create' command-line option
...
(#2333 )
2 years ago
Mike Fährmann
26d06e0bb2
move executable check into util.py
2 years ago
Mike Fährmann
de2f35d068
simplify config.load()
2 years ago
Mike Fährmann
632d5d7745
allow loading config files in TOML format with --config-toml
2 years ago
Mike Fährmann
d788e6c60c
implement 'globals' option
2 years ago
Mike Fährmann
e480a93337
add 'output.stdout', '.stdin', and '.stderr' options
...
(#1621 , #2152 , #2529 )
Allow setting custom input/output encodings and options
without having to rely on Python's defaults.
2 years ago
Mike Fährmann
d4232f3a8b
implement restarting an extractor ( #3338 )
2 years ago
Mike Fährmann
c2bc70593e
implement ability to load external extractor classes
...
- -X/--extractors
- extractor.module-sources
2 years ago
Mike Fährmann
f58215705a
add '-O/--postprocessor-option' command-line option ( #3565 )
2 years ago
Mike Fährmann
dfe7b23579
support Firefox containers for --cookies-from-browser ( #3346 )
2 years ago
Mike Fährmann
46d811bac0
add loaded config files to debug output
2 years ago
Mike Fährmann
597b63d922
move git head functionality to function in util.py
2 years ago
Mike Fährmann
b337e51e91
run flake8 on all .py files
2 years ago
Mike Fährmann
e140b85342
reword error text for unsupported URLs
2 years ago
Mike Fährmann
a6e2d96dde
fix bug when processing input file comments ( #2808 )
...
and move 'parse_inputfile()' to util.py
2 years ago
Mike Fährmann
bdad9c40dd
remove whitespace before comments in input file URLs ( #2808 )
2 years ago
Mike Fährmann
764906e1af
allow tabstops as whitespace before input file comments ( #2808 )
2 years ago
Mike Fährmann
d0adc13e23
allow comments after input file URLs ( #2808 )
...
everything after the first " #" (space + hash) gets ignored
2 years ago
Mike Fährmann
74865adae5
implement 'format-separator' option ( #2737 )
...
a global option, that servers as a workaround for shortcomings due to
lack of a proper format string parser
2 years ago
Mike Fährmann
603af48265
implement 'output.ansi' option ( #2628 )
2 years ago
Mike Fährmann
688d6553b4
replace calls to print() with stdout_write() ( #2529 )
2 years ago
Mike Fährmann
6742f3bc1e
implement --cookies-from-browser ( #1606 )
...
most of the code is adapted from yt-dlp's implementation
and *should* work the same.
2 years ago
Mike Fährmann
9e6c981388
replace '\f' in --filename arguments with form feed character
...
to make it easier to use special type format strings on command-line
(#2396 )
2 years ago
Mike Fährmann
f5b2a9fcc6
add 'signals-ignore' option ( #2296 )
3 years ago
Mike Fährmann
4edf43891c
add -d/--directory and -f/--filename command-line arguments
3 years ago
Mike Fährmann
45ca1693d8
add indicator to debug output when using a standalone executable
3 years ago