[philomena] support furbooru.org (closes #1995)
This commit is contained in:
@@ -937,6 +937,12 @@ Consider all sites to be NSFW unless otherwise known.
|
|||||||
<td>Galleries, Posts, Search Results</td>
|
<td>Galleries, Posts, Search Results</td>
|
||||||
<td><a href="configuration.rst#extractorderpibooruapi-key">API Key</a></td>
|
<td><a href="configuration.rst#extractorderpibooruapi-key">API Key</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Furbooru</td>
|
||||||
|
<td>https://furbooru.org/</td>
|
||||||
|
<td>Galleries, Posts, Search Results</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Ponybooru</td>
|
<td>Ponybooru</td>
|
||||||
<td>https://ponybooru.org/</td>
|
<td>https://ponybooru.org/</td>
|
||||||
|
|||||||
@@ -62,6 +62,8 @@ INSTANCES = {
|
|||||||
"filter_id": "56027"},
|
"filter_id": "56027"},
|
||||||
"ponybooru" : {"root": "https://ponybooru.org",
|
"ponybooru" : {"root": "https://ponybooru.org",
|
||||||
"filter_id": "2"},
|
"filter_id": "2"},
|
||||||
|
"furbooru" : {"root": "https://furbooru.org",
|
||||||
|
"filter_id": "2"},
|
||||||
}
|
}
|
||||||
|
|
||||||
BASE_PATTERN = PhilomenaExtractor.update(INSTANCES)
|
BASE_PATTERN = PhilomenaExtractor.update(INSTANCES)
|
||||||
@@ -124,6 +126,9 @@ class PhilomenaPostExtractor(PhilomenaExtractor):
|
|||||||
("https://ponybooru.org/images/1", {
|
("https://ponybooru.org/images/1", {
|
||||||
"content": "bca26f58fafd791fe07adcd2a28efd7751824605",
|
"content": "bca26f58fafd791fe07adcd2a28efd7751824605",
|
||||||
}),
|
}),
|
||||||
|
("https://furbooru.org/images/1", {
|
||||||
|
"content": "9eaa1e1b32fa0f16520912257dbefaff238d5fd2",
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
@@ -157,6 +162,10 @@ class PhilomenaSearchExtractor(PhilomenaExtractor):
|
|||||||
"range": "40-60",
|
"range": "40-60",
|
||||||
"count": 21,
|
"count": 21,
|
||||||
}),
|
}),
|
||||||
|
("https://furbooru.org/search?q=cute", {
|
||||||
|
"range": "40-60",
|
||||||
|
"count": 21,
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
@@ -210,6 +219,9 @@ class PhilomenaGalleryExtractor(PhilomenaExtractor):
|
|||||||
("https://ponybooru.org/galleries/27", {
|
("https://ponybooru.org/galleries/27", {
|
||||||
"count": ">= 24",
|
"count": ">= 24",
|
||||||
}),
|
}),
|
||||||
|
("https://furbooru.org/galleries/27", {
|
||||||
|
"count": ">= 13",
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
|
|||||||
Reference in New Issue
Block a user