[deviantart] add 'subfolders' option

This commit is contained in:
Mike Fährmann
2025-03-23 17:58:58 +01:00
parent ffdec0cc04
commit b52c21186b
3 changed files with 14 additions and 1 deletions

View File

@@ -2286,6 +2286,16 @@ Description
| Leave ``SIZE`` empty to download the regular, small avatar format.
extractor.deviantart.folder.subfolders
--------------------------------------
Type
``bool``
Default
``true``
Description
Also extract subfolder content.
extractor.discord.embeds
------------------------
Type

View File

@@ -235,6 +235,9 @@
"avatar": {
"formats": null
},
"folder": {
"subfolders": true
}
},
"exhentai":

View File

@@ -1018,7 +1018,7 @@ class DeviantartFolderExtractor(DeviantartExtractor):
"{folder[parent_folder]}",
"{folder[title]}")
if folder.get("has_subfolders"):
if folder.get("has_subfolders") and self.config("subfolders", True):
for subfolder in folder["subfolders"]:
subfolder["parent_folder"] = folder["name"]
subfolder["subfolder"] = True