[deviantart] add support for OAuth2 authentication
Some user galleries [*] require you to be either logged in or authenticated via OAuth2 to access their deviations. [*] e.g. https://polinaegorussia.deviantart.com/gallery/ -------------- known issue: A deviantart 'refresh_token' can only be used once and gets updated whenever it is used to request a new 'access_token', so storing its initial value in a config file and reusing it again and again is not possible.
This commit is contained in:
@@ -76,14 +76,15 @@ SUBCATEGORY_MAP = {
|
||||
}
|
||||
|
||||
AUTH_MAP = {
|
||||
"batoto" : "Optional",
|
||||
"exhentai": "Optional",
|
||||
"flickr" : "Optional (OAuth)",
|
||||
"nijie" : "Required",
|
||||
"pixiv" : "Required",
|
||||
"reddit" : "Optional (OAuth)",
|
||||
"sankaku" : "Optional",
|
||||
"seiga" : "Required",
|
||||
"batoto" : "Optional",
|
||||
"deviantart": "Optional (OAuth)",
|
||||
"exhentai" : "Optional",
|
||||
"flickr" : "Optional (OAuth)",
|
||||
"nijie" : "Required",
|
||||
"pixiv" : "Required",
|
||||
"reddit" : "Optional (OAuth)",
|
||||
"sankaku" : "Optional",
|
||||
"seiga" : "Required",
|
||||
}
|
||||
|
||||
IGNORE_LIST = (
|
||||
|
||||
Reference in New Issue
Block a user