implement 'archive-pragma' option

This commit is contained in:
Mike Fährmann
2023-02-05 16:05:13 +01:00
parent bbf0911a46
commit 762a68996b
5 changed files with 44 additions and 18 deletions

View File

@@ -760,6 +760,19 @@ Description
Prefix for archive IDs.
extractor.*.archive-pragma
--------------------------
Type
``list`` of ``strings``
Example
``["journal_mode=WAL", "synchronous=NORMAL"]``
Description
A list of SQLite ``PRAGMA`` statements to run during archive initialization.
See `<https://www.sqlite.org/pragma.html>`__
for available ``PRAGMA`` statements and further details.
extractor.*.postprocessors
--------------------------
Type
@@ -4027,9 +4040,11 @@ Description
File to store IDs of executed commands in,
similar to `extractor.*.archive`_.
``archive-format`` and ``archive-prefix`` options,
akin to `extractor.*.archive-format`_ and `extractor.*.archive-prefix`_,
are supported as well.
``archive-format``, ``archive-prefix``, and ``archive-pragma`` options,
akin to
`extractor.*.archive-format`_,
`extractor.*.archive-prefix`_, and
`extractor.*.archive-pragma`_, are supported as well.
exec.async
@@ -4287,9 +4302,11 @@ Description
File to store IDs of generated metadata files in,
similar to `extractor.*.archive`_.
``archive-format`` and ``archive-prefix`` options,
akin to `extractor.*.archive-format`_ and `extractor.*.archive-prefix`_,
are supported as well.
``archive-format``, ``archive-prefix``, and ``archive-pragma`` options,
akin to
`extractor.*.archive-format`_,
`extractor.*.archive-prefix`_, and
`extractor.*.archive-pragma`_, are supported as well.
metadata.mtime

View File

@@ -5,6 +5,7 @@
"#": "set global archive file for all extractors",
"archive": "~/gallery-dl/archive.sqlite3",
"archive-pragma": ["journal_mode=WAL", "synchronous=NORMAL"],
"#": "add two custom keywords into the metadata dictionary",
"#": "these can be used to further refine your output directories or filenames",
@@ -36,7 +37,7 @@
"pixiv":
{
"#": "override global archive setting for pixiv",
"#": "override global archive path for pixiv",
"archive": "~/gallery-dl/archive-pixiv.sqlite3",
"#": "set custom directory and filename format strings for all pixiv downloads",