summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/reactor.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-06-05 20:55:36 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2021-06-05 20:55:36 -0400
commit8a644b7a06c504263a478d3681eed10b4161b5be (patch)
treeb3d668588e5c0be8c75467e50499f73ff9ec7c05 /gallery_dl/extractor/reactor.py
parente7eb1f9779f2e223575ab23a6bc1abf2222e7d27 (diff)
New upstream version 1.17.5.upstream/1.17.5
Diffstat (limited to 'gallery_dl/extractor/reactor.py')
-rw-r--r--gallery_dl/extractor/reactor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gallery_dl/extractor/reactor.py b/gallery_dl/extractor/reactor.py
index 971347b..c62a942 100644
--- a/gallery_dl/extractor/reactor.py
+++ b/gallery_dl/extractor/reactor.py
@@ -78,6 +78,8 @@ class ReactorExtractor(Extractor):
def _parse_post(self, post):
post, _, script = post.partition('<script type="application/ld+json">')
+ if not script:
+ return
images = text.extract_iter(post, '<div class="image">', '</div>')
script = script[:script.index("</")].strip()
@@ -210,7 +212,7 @@ class JoyreactorTagExtractor(ReactorTagExtractor):
pattern = JR_BASE_PATTERN + r"/tag/([^/?#]+)"
test = (
("http://joyreactor.cc/tag/Advent+Cirno", {
- "count": ">= 17",
+ "count": ">= 15",
}),
("http://joyreactor.com/tag/Cirno", {
"url": "de1e60c15bfb07a0e9603b00dc3d05f60edc7914",