summaryrefslogtreecommitdiffstats
path: root/gallery_dl/oauth.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-12-25 19:40:28 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-12-25 19:40:28 -0500
commitf9a1a9dcb7df977eeac9544786df9c0b93795815 (patch)
tree8cb69cf7685da8d7e4deb7dc1d6b209098e1ddfb /gallery_dl/oauth.py
parent0c73e982fa596da07f23b377621ab894a9e64884 (diff)
New upstream version 1.12.1upstream/1.12.1
Diffstat (limited to 'gallery_dl/oauth.py')
-rw-r--r--gallery_dl/oauth.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gallery_dl/oauth.py b/gallery_dl/oauth.py
index 3093a72..9ceefbf 100644
--- a/gallery_dl/oauth.py
+++ b/gallery_dl/oauth.py
@@ -115,14 +115,15 @@ class OAuth1API():
api_secret = extractor.config("api-secret", self.API_SECRET)
token = extractor.config("access-token")
token_secret = extractor.config("access-token-secret")
+ key_type = "default" if api_key == self.API_KEY else "custom"
if api_key and api_secret and token and token_secret:
- self.log.debug("Using OAuth1.0 authentication")
+ self.log.debug("Using %s OAuth1.0 authentication", key_type)
self.session = OAuth1Session(
api_key, api_secret, token, token_secret)
self.api_key = None
else:
- self.log.debug("Using api_key authentication")
+ self.log.debug("Using %s api_key authentication", key_type)
self.session = extractor.session
self.api_key = api_key