[path] implement conditional 'base-directory'

This commit is contained in:
Mike Fährmann
2025-10-08 20:14:46 +02:00
parent 6a7f5574cf
commit c723eefcf5
2 changed files with 50 additions and 14 deletions

View File

@@ -188,12 +188,29 @@ Description
extractor.*.base-directory
--------------------------
Type
|Path|_
* |Path|_
* ``object`` (Condition_ → |Path|_)
Default
``"./gallery-dl/"``
Example
.. code:: json
"~/Downloads/gallery-dl"
.. code:: json
{
"score >= 100": "$DL",
"duration" : "$DL/video",
"" : "/tmp/files/"
}
Description
Directory path used as base for all download destinations.
If this is an ``object``,
it must contain Conditions_ mapping to the |Path|_ to use.
Specifying a default |Path|_ with ``""`` is required.
extractor.*.parent-directory
----------------------------