From cfa48768483e68b2a3fa19d7bb7ae63a7ef718be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 15 Nov 2021 20:57:51 +0100 Subject: [PATCH] [philomena] support furbooru.org (closes #1995) --- docs/supportedsites.md | 6 ++++++ gallery_dl/extractor/philomena.py | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/docs/supportedsites.md b/docs/supportedsites.md index ec53c78f..bbd4104b 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -937,6 +937,12 @@ Consider all sites to be NSFW unless otherwise known. Galleries, Posts, Search Results API Key + + Furbooru + https://furbooru.org/ + Galleries, Posts, Search Results + + Ponybooru https://ponybooru.org/ diff --git a/gallery_dl/extractor/philomena.py b/gallery_dl/extractor/philomena.py index d3b3bb12..51a0d38b 100644 --- a/gallery_dl/extractor/philomena.py +++ b/gallery_dl/extractor/philomena.py @@ -62,6 +62,8 @@ INSTANCES = { "filter_id": "56027"}, "ponybooru" : {"root": "https://ponybooru.org", "filter_id": "2"}, + "furbooru" : {"root": "https://furbooru.org", + "filter_id": "2"}, } BASE_PATTERN = PhilomenaExtractor.update(INSTANCES) @@ -124,6 +126,9 @@ class PhilomenaPostExtractor(PhilomenaExtractor): ("https://ponybooru.org/images/1", { "content": "bca26f58fafd791fe07adcd2a28efd7751824605", }), + ("https://furbooru.org/images/1", { + "content": "9eaa1e1b32fa0f16520912257dbefaff238d5fd2", + }), ) def __init__(self, match): @@ -157,6 +162,10 @@ class PhilomenaSearchExtractor(PhilomenaExtractor): "range": "40-60", "count": 21, }), + ("https://furbooru.org/search?q=cute", { + "range": "40-60", + "count": 21, + }), ) def __init__(self, match): @@ -210,6 +219,9 @@ class PhilomenaGalleryExtractor(PhilomenaExtractor): ("https://ponybooru.org/galleries/27", { "count": ">= 24", }), + ("https://furbooru.org/galleries/27", { + "count": ">= 13", + }), ) def __init__(self, match):