[deviantart] refactor 'extra' (#1356)

- change its expected type to string
- let users specify a list of sources (stash, posts) or 'all'
This commit is contained in:
Mike Fährmann
2021-03-07 22:23:52 +01:00
parent 5c32a7bf58
commit 83f465faca
3 changed files with 27 additions and 26 deletions

View File

@@ -745,15 +745,20 @@ Description
extractor.deviantart.extra
--------------------------
Type
``bool`` or ``string``
``string`` or ``list`` of ``strings``
Default
``false``
``null``
Example
``stash,posts``
Description
Download embedded Deviations and Sta.sh resources from
description texts and journals.
A (comma-separated) list of extra content to extract
from description texts and journals.
Set this option to ``"stash"`` or ``"deviations"``
to select only one of them as a source.
Possible values are
``"posts"`` (embedded DeviantArt posts) and
``"stash"`` (Sta.sh resources).
You can use ``"all"`` instead of listing all values separately.
Note: Enabling this option also enables
`deviantart.metadata <extractor.deviantart.metadata_>`_.

View File

@@ -58,7 +58,7 @@
},
"deviantart":
{
"extra": false,
"extra": null,
"flat": true,
"folders": false,
"include": "gallery",