From 01b9ccd4de0c91ee572486916531add0fc28ab0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 14 Jan 2021 04:00:41 +0100 Subject: [PATCH] [derpibooru] use the "Everything" filter by default (#1243) when neither 'api-key' nor 'filter' are set --- docs/configuration.rst | 2 -- gallery_dl/extractor/derpibooru.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 0752b9c9..b08aca09 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -713,8 +713,6 @@ extractor.derpibooru.filter Type ``integer`` Default - ``null`` -Example ``56027`` (`Everything `_ filter) Description The content filter ID to use. diff --git a/gallery_dl/extractor/derpibooru.py b/gallery_dl/extractor/derpibooru.py index 3b20fa54..5dbe2f0c 100644 --- a/gallery_dl/extractor/derpibooru.py +++ b/gallery_dl/extractor/derpibooru.py @@ -46,6 +46,8 @@ class DerpibooruExtractor(BooruExtractor): filter_id = self.config("filter") if filter_id: params["filter_id"] = filter_id + elif not api_key: + params["filter_id"] = "56027" # "Everything" filter while True: data = self.request(url, params=params).json()