aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/vanillarock.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/vanillarock.py')
-rw-r--r--gallery_dl/extractor/vanillarock.py20
1 files changed, 3 insertions, 17 deletions
diff --git a/gallery_dl/extractor/vanillarock.py b/gallery_dl/extractor/vanillarock.py
index 6b1178e..1ce969f 100644
--- a/gallery_dl/extractor/vanillarock.py
+++ b/gallery_dl/extractor/vanillarock.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright 2019 Mike Fährmann
+# Copyright 2019-2023 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
@@ -30,10 +30,7 @@ class VanillarockPostExtractor(VanillarockExtractor):
archive_fmt = "{filename}"
pattern = (r"(?:https?://)?(?:www\.)?vanilla-rock\.com"
r"(/(?!category/|tag/)[^/?#]+)/?$")
- test = ("https://vanilla-rock.com/mizuhashi_parsee-5", {
- "url": "7fb9a4d18d9fa22d7295fee8d94ab5a7a52265dd",
- "keyword": "b91df99b714e1958d9636748b1c81a07c3ef52c9",
- })
+ example = "https://vanilla-rock.com/TITLE"
def items(self):
extr = text.extract_from(self.request(self.root + self.path).text)
@@ -66,18 +63,7 @@ class VanillarockTagExtractor(VanillarockExtractor):
subcategory = "tag"
pattern = (r"(?:https?://)?(?:www\.)?vanilla-rock\.com"
r"(/(?:tag|category)/[^?#]+)")
- test = (
- ("https://vanilla-rock.com/tag/%e5%b0%84%e5%91%bd%e4%b8%b8%e6%96%87", {
- "pattern": VanillarockPostExtractor.pattern,
- "count": ">= 12",
- }),
- (("https://vanilla-rock.com/category/%e4%ba%8c%e6%ac%a1%e3%82%a8%e3%83"
- "%ad%e7%94%bb%e5%83%8f/%e8%90%8c%e3%81%88%e3%83%bb%e3%82%bd%e3%83%95"
- "%e3%83%88%e3%82%a8%e3%83%ad"), {
- "pattern": VanillarockPostExtractor.pattern,
- "count": ">= 5",
- }),
- )
+ example = "https://vanilla-rock.com/tag/TAG"
def items(self):
url = self.root + self.path