summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/oauth.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-09-09 01:57:57 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2021-09-09 01:57:57 -0400
commit3f5483df9075ae526f4c54f4cbe80edeabf6d4cc (patch)
tree6b2194fa03fd58ac35114c0dbec7561612a584b8 /gallery_dl/extractor/oauth.py
parentd50ba9cfe80f00e02ca9a4714f75699c00e67128 (diff)
New upstream version 1.18.4.upstream/1.18.4
Diffstat (limited to 'gallery_dl/extractor/oauth.py')
-rw-r--r--gallery_dl/extractor/oauth.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gallery_dl/extractor/oauth.py b/gallery_dl/extractor/oauth.py
index c798ad0..4dc1e43 100644
--- a/gallery_dl/extractor/oauth.py
+++ b/gallery_dl/extractor/oauth.py
@@ -31,8 +31,8 @@ class OAuthBase(Extractor):
self.cache = config.get(("extractor", self.category), "cache", True)
def oauth_config(self, key, default=None):
- return config.interpolate(
- ("extractor", self.subcategory), key, default)
+ value = config.interpolate(("extractor", self.subcategory), key)
+ return value if value is not None else default
def recv(self):
"""Open local HTTP server and recv callback parameters"""
@@ -220,7 +220,7 @@ class OAuthDeviantart(OAuthBase):
"client-secret", deviantart.DeviantartOAuthAPI.CLIENT_SECRET),
"https://www.deviantart.com/oauth2/authorize",
"https://www.deviantart.com/oauth2/token",
- scope="browse",
+ scope="browse user.manage",
cache=deviantart._refresh_token_cache,
)