[deviantart] use default ID when 'client-id' is None

pull/1550/head
Mike Fährmann 3 years ago
parent 3e4ffb0821
commit 14f983eab6
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -930,10 +930,12 @@ class DeviantartOAuthAPI():
self.folders = extractor.config("folders", False) self.folders = extractor.config("folders", False)
self.metadata = extractor.extra or extractor.config("metadata", False) self.metadata = extractor.extra or extractor.config("metadata", False)
self.client_id = extractor.config( self.client_id = extractor.config("client-id")
"client-id", self.CLIENT_ID) if self.client_id:
self.client_secret = extractor.config( self.client_secret = extractor.config("client-secret")
"client-secret", self.CLIENT_SECRET) else:
self.client_id = self.CLIENT_ID
self.client_secret = self.CLIENT_SECRET
token = extractor.config("refresh-token") token = extractor.config("refresh-token")
if token is None or token == "cache": if token is None or token == "cache":

Loading…
Cancel
Save