[deviantart] add 'group' option (#3018)
disabling this option allows to better download from deleted accounts
This commit is contained in:
@@ -1048,6 +1048,17 @@ Description
|
|||||||
Use with caution.
|
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
|
extractor.deviantart.include
|
||||||
----------------------------
|
----------------------------
|
||||||
Type
|
Type
|
||||||
|
|||||||
@@ -71,10 +71,13 @@
|
|||||||
{
|
{
|
||||||
"client-id": null,
|
"client-id": null,
|
||||||
"client-secret": null,
|
"client-secret": null,
|
||||||
|
"auto-watch": false,
|
||||||
|
"auto-unwatch": false,
|
||||||
"comments": false,
|
"comments": false,
|
||||||
"extra": false,
|
"extra": false,
|
||||||
"flat": true,
|
"flat": true,
|
||||||
"folders": false,
|
"folders": false,
|
||||||
|
"group": true,
|
||||||
"include": "gallery",
|
"include": "gallery",
|
||||||
"journals": "html",
|
"journals": "html",
|
||||||
"mature": true,
|
"mature": true,
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class DeviantartExtractor(Extractor):
|
|||||||
def items(self):
|
def items(self):
|
||||||
self.api = DeviantartOAuthAPI(self)
|
self.api = DeviantartOAuthAPI(self)
|
||||||
|
|
||||||
if self.user:
|
if self.user and self.config("group", True):
|
||||||
profile = self.api.user_profile(self.user)
|
profile = self.api.user_profile(self.user)
|
||||||
self.group = not profile
|
self.group = not profile
|
||||||
if self.group:
|
if self.group:
|
||||||
|
|||||||
Reference in New Issue
Block a user