1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[blogger] use default API key when 'api-key' is empty

… and not just when 'api-key' is not set.
This commit is contained in:
Mike Fährmann 2024-11-20 16:02:16 +01:00
parent 9b2d782cb7
commit 88ba85d285
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -159,7 +159,7 @@ class BloggerAPI():
def __init__(self, extractor):
self.extractor = extractor
self.api_key = extractor.config("api-key", self.API_KEY)
self.api_key = extractor.config("api-key") or self.API_KEY
def blog_by_url(self, url):
return self._call("blogs/byurl", {"url": url}, "blog")