diff options
| author | 2021-06-05 20:55:36 -0400 | |
|---|---|---|
| committer | 2021-06-05 20:55:36 -0400 | |
| commit | 8a644b7a06c504263a478d3681eed10b4161b5be (patch) | |
| tree | b3d668588e5c0be8c75467e50499f73ff9ec7c05 /gallery_dl/extractor/reactor.py | |
| parent | e7eb1f9779f2e223575ab23a6bc1abf2222e7d27 (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.py | 4 |
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", |
