mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-21 18:22:30 +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:
parent
9b2d782cb7
commit
88ba85d285
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user