1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[deviantart] workaround for integer client_id values (#4924)

This commit is contained in:
Mike Fährmann 2023-12-14 16:25:06 +01:00
parent a37b7759bc
commit 9951c112f8
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -1005,6 +1005,8 @@ class DeviantartOAuthAPI():
self.client_id = extractor.config("client-id") self.client_id = extractor.config("client-id")
if self.client_id: if self.client_id:
if not isinstance(self.client_id, str):
self.client_id = str(self.client_id)
self.client_secret = extractor.config("client-secret") self.client_secret = extractor.config("client-secret")
else: else:
self.client_id = self.CLIENT_ID self.client_id = self.CLIENT_ID