1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

add '--cookies-export' command-line option

This commit is contained in:
Mike Fährmann 2023-05-06 17:37:49 +02:00
parent d12dd3813c
commit b9b1cdd71b
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@
--clear-cache MODULE Delete cached login sessions, cookies, etc. for
MODULE (ALL to delete everything)
--cookies FILE File to load additional cookies from
--cookies-export FILE Export session cookies to FILE
--cookies-from-browser BROWSER[/DOMAIN][+KEYRING][:PROFILE][::CONTAINER]
Name of the browser to load cookies from, with
optional domain prefixed with '/', keyring name

View File

@ -153,6 +153,11 @@ def build_parser():
dest="cookies", metavar="FILE", action=ConfigAction,
help="File to load additional cookies from",
)
general.add_argument(
"--cookies-export",
dest="cookies-update", metavar="FILE", action=ConfigAction,
help="Export session cookies to FILE",
)
general.add_argument(
"--cookies-from-browser",
dest="cookies_from_browser",