summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/philomena.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-05-26 23:57:04 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2022-05-26 23:57:04 -0400
commitad61a6d8122973534ab63df48f6090954bc73db6 (patch)
treeaedce94427ac95fa180005f88fc94b5c8ef5a62a /gallery_dl/extractor/philomena.py
parentc6b88a96bd191711fc540d7babab3d2e09c68da8 (diff)
New upstream version 1.22.0.upstream/1.22.0
Diffstat (limited to 'gallery_dl/extractor/philomena.py')
-rw-r--r--gallery_dl/extractor/philomena.py25
1 files changed, 17 insertions, 8 deletions
diff --git a/gallery_dl/extractor/philomena.py b/gallery_dl/extractor/philomena.py
index 92b8113..951b34d 100644
--- a/gallery_dl/extractor/philomena.py
+++ b/gallery_dl/extractor/philomena.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright 2021 Mike Fährmann
+# Copyright 2021-2022 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -58,12 +58,21 @@ class PhilomenaExtractor(BooruExtractor):
INSTANCES = {
- "derpibooru": {"root": "https://derpibooru.org",
- "filter_id": "56027"},
- "ponybooru" : {"root": "https://ponybooru.org",
- "filter_id": "2"},
- "furbooru" : {"root": "https://furbooru.org",
- "filter_id": "2"},
+ "derpibooru": {
+ "root": "https://derpibooru.org",
+ "pattern": r"derpibooru\.org",
+ "filter_id": "56027",
+ },
+ "ponybooru": {
+ "root": "https://ponybooru.org",
+ "pattern": r"ponybooru\.org",
+ "filter_id": "2",
+ },
+ "furbooru": {
+ "root": "https://furbooru.org",
+ "pattern": r"furbooru\.org",
+ "filter_id": "2",
+ },
}
BASE_PATTERN = PhilomenaExtractor.update(INSTANCES)
@@ -239,5 +248,5 @@ class PhilomenaGalleryExtractor(PhilomenaExtractor):
def posts(self):
gallery_id = "gallery_id:" + self.gallery_id
url = self.root + "/api/v1/json/search/images"
- params = {"sd": "desc", "sf": gallery_id, "q" : gallery_id}
+ params = {"sd": "desc", "sf": gallery_id, "q": gallery_id}
return self._pagination(url, params)