implement 'http-metadata' option

or at least attempt to.
This commit is contained in:
Mike Fährmann
2022-11-05 17:37:43 +01:00
parent b7a83ac726
commit 870e6a48a0
2 changed files with 50 additions and 7 deletions

View File

@@ -586,6 +586,22 @@ Description
to access the current file's filename as ``"[gdl_path.filename}"``.
extractor.*.http-metadata
-------------------------
Type
``string``
Default
``null``
Description
Insert an ``object`` containing a file's HTTP headers and
``filename``, ``extension``, and ``date`` parsed from them
into metadata dictionaries as the given name.
For example, setting this option to ``"gdl_http"`` would make it possible
to access the current file's ``Last-Modified`` header as ``"[gdl_http[Last-Modified]}"``
and its parsed form as .``"[gdl_http[date]}"``.
extractor.*.category-transfer
-----------------------------
Type