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:
parent
5a0b4cfab4
commit
14717f3fc9
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user