[deviantart] add 'subfolders' option
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -235,6 +235,9 @@
|
||||
|
||||
"avatar": {
|
||||
"formats": null
|
||||
},
|
||||
"folder": {
|
||||
"subfolders": true
|
||||
}
|
||||
},
|
||||
"exhentai":
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user