summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/philomena.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-06-22 22:30:36 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2021-06-22 22:30:36 -0400
commit32de2b06db501c7de81678bce8e3e0c3e63d340c (patch)
treefd58a26618a73de0faaf3e9c435a806aed7eced3 /gallery_dl/extractor/philomena.py
parent8a644b7a06c504263a478d3681eed10b4161b5be (diff)
New upstream version 1.18.0.upstream/1.18.0
Diffstat (limited to 'gallery_dl/extractor/philomena.py')
-rw-r--r--gallery_dl/extractor/philomena.py21
1 files changed, 18 insertions, 3 deletions
diff --git a/gallery_dl/extractor/philomena.py b/gallery_dl/extractor/philomena.py
index 3cfcb0e..64fc938 100644
--- a/gallery_dl/extractor/philomena.py
+++ b/gallery_dl/extractor/philomena.py
@@ -107,11 +107,11 @@ class PhilomenaPostExtractor(PhilomenaExtractor):
"source_url": "https://www.deviantart.com/speccysy/art"
"/Afternoon-Flight-215193985",
"spoilered": False,
- "tag_count": 37,
+ "tag_count": 38,
"tag_ids": list,
"tags": list,
"thumbnails_generated": True,
- "updated_at": "2021-04-07T06:01:30Z",
+ "updated_at": "2021-05-28T17:39:38Z",
"uploader": "Clover the Clever",
"uploader_id": 211188,
"upvotes": int,
@@ -149,6 +149,10 @@ class PhilomenaSearchExtractor(PhilomenaExtractor):
"range": "40-60",
"count": 21,
}),
+ (("https://derpibooru.org/tags/"
+ "artist-colon--dash-_-fwslash--fwslash-%255Bkorroki%255D_aternak"), {
+ "count": ">= 2",
+ }),
("https://ponybooru.org/search?q=cute", {
"range": "40-60",
"count": 21,
@@ -159,7 +163,18 @@ class PhilomenaSearchExtractor(PhilomenaExtractor):
PhilomenaExtractor.__init__(self, match)
groups = match.groups()
if groups[-1]:
- self.params = {"q": groups[-1]}
+ q = groups[-1]
+ for old, new in (
+ ("-colon-" , ":"),
+ ("-dash-" , "-"),
+ ("-dot-" , "."),
+ ("-plus-" , "+"),
+ ("-fwslash-", "/"),
+ ("-bwslash-", "\\"),
+ ):
+ if old in q:
+ q = q.replace(old, new)
+ self.params = {"q": text.unquote(text.unquote(q))}
else:
self.params = text.parse_query(groups[-2])