From 88ba85d28575031c19b429a170037427345e9588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 20 Nov 2024 16:02:16 +0100 Subject: [PATCH] [blogger] use default API key when 'api-key' is empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … and not just when 'api-key' is not set. --- gallery_dl/extractor/blogger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/blogger.py b/gallery_dl/extractor/blogger.py index 37075eaa..ef117da7 100644 --- a/gallery_dl/extractor/blogger.py +++ b/gallery_dl/extractor/blogger.py @@ -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")