1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[deviantart] add 'group' option (#3018)

disabling this option allows to better download from deleted accounts
This commit is contained in:
Mike Fährmann 2022-10-06 22:47:14 +02:00
parent 5a0b4cfab4
commit 14717f3fc9
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 15 additions and 1 deletions

View File

@ -1048,6 +1048,17 @@ Description
Use with caution.
extractor.deviantart.group
--------------------------
Type
``bool``
Default
``true``
Description
Check whether the profile name in a given URL
belongs to a group or a regular user.
extractor.deviantart.include
----------------------------
Type

View File

@ -71,10 +71,13 @@
{
"client-id": null,
"client-secret": null,
"auto-watch": false,
"auto-unwatch": false,
"comments": false,
"extra": false,
"flat": true,
"folders": false,
"group": true,
"include": "gallery",
"journals": "html",
"mature": true,

View File

@ -72,7 +72,7 @@ class DeviantartExtractor(Extractor):
def items(self):
self.api = DeviantartOAuthAPI(self)
if self.user:
if self.user and self.config("group", True):
profile = self.api.user_profile(self.user)
self.group = not profile
if self.group: