summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/moebooru.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/moebooru.py')
-rw-r--r--gallery_dl/extractor/moebooru.py18
1 files changed, 3 insertions, 15 deletions
diff --git a/gallery_dl/extractor/moebooru.py b/gallery_dl/extractor/moebooru.py
index cbc8680..0ac55cd 100644
--- a/gallery_dl/extractor/moebooru.py
+++ b/gallery_dl/extractor/moebooru.py
@@ -23,16 +23,11 @@ class MoebooruExtractor(BooruExtractor):
filename_fmt = "{category}_{id}_{md5}.{extension}"
page_start = 1
- def _prepare_post(self, post, extended_tags=False):
- url = post["file_url"]
- if url[0] == "/":
- url = self.root + url
- if extended_tags:
- self._fetch_extended_tags(post)
+ @staticmethod
+ def _prepare(post):
post["date"] = text.parse_timestamp(post["created_at"])
- return url
- def _fetch_extended_tags(self, post):
+ def _extended_tags(self, post):
url = "{}/post/show/{}".format(self.root, post["id"])
page = self.request(url).text
html = text.extract(page, '<ul id="tag-', '</ul>')[0]
@@ -217,13 +212,6 @@ EXTRACTORS = {
}),
"test-post": ("https://hypnohub.net/post/show/73964", {
"content": "02d5f5a8396b621a6efc04c5f8ef1b7225dfc6ee",
- "options": (("tags", True),),
- "keyword": {
- "tags_artist": "gonoike_biwa icontrol_(manipper)",
- "tags_character": "komaru_naegi",
- "tags_copyright": "dangan_ronpa dangan_ronpa_another_episode",
- "tags_general": str,
- },
}),
"test-popular": (
("https://hypnohub.net/post/popular_by_month?month=6&year=2014", {