[deviantart] add 'subfolders' option
This commit is contained in:
@@ -2286,6 +2286,16 @@ Description
|
|||||||
| Leave ``SIZE`` empty to download the regular, small avatar format.
|
| 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
|
extractor.discord.embeds
|
||||||
------------------------
|
------------------------
|
||||||
Type
|
Type
|
||||||
|
|||||||
@@ -235,6 +235,9 @@
|
|||||||
|
|
||||||
"avatar": {
|
"avatar": {
|
||||||
"formats": null
|
"formats": null
|
||||||
|
},
|
||||||
|
"folder": {
|
||||||
|
"subfolders": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exhentai":
|
"exhentai":
|
||||||
|
|||||||
@@ -1018,7 +1018,7 @@ class DeviantartFolderExtractor(DeviantartExtractor):
|
|||||||
"{folder[parent_folder]}",
|
"{folder[parent_folder]}",
|
||||||
"{folder[title]}")
|
"{folder[title]}")
|
||||||
|
|
||||||
if folder.get("has_subfolders"):
|
if folder.get("has_subfolders") and self.config("subfolders", True):
|
||||||
for subfolder in folder["subfolders"]:
|
for subfolder in folder["subfolders"]:
|
||||||
subfolder["parent_folder"] = folder["name"]
|
subfolder["parent_folder"] = folder["name"]
|
||||||
subfolder["subfolder"] = True
|
subfolder["subfolder"] = True
|
||||||
|
|||||||
Reference in New Issue
Block a user