aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/imagehosts.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-10-07 02:11:52 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-10-07 02:11:52 -0400
commit83e1e051b8c0e622ef5f61c1955c47b4bde95b57 (patch)
tree544a434cb398d2adb8b8a2d553dc1c9a44b4ee1d /gallery_dl/extractor/imagehosts.py
parentf1612851ae9fe68c7444fb31e786503868aeaa7c (diff)
parentbbe7fac03d881662a458e7fbf870c9d71f5257f4 (diff)
Update upstream source from tag 'upstream/1.30.9'
Update to upstream version '1.30.9' with Debian dir 46cc56e13f05f4465cc64f67b4d7b775a95bd87a
Diffstat (limited to 'gallery_dl/extractor/imagehosts.py')
-rw-r--r--gallery_dl/extractor/imagehosts.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/gallery_dl/extractor/imagehosts.py b/gallery_dl/extractor/imagehosts.py
index fccc466..817d2c4 100644
--- a/gallery_dl/extractor/imagehosts.py
+++ b/gallery_dl/extractor/imagehosts.py
@@ -125,8 +125,18 @@ class ImxtoGalleryExtractor(ImagehostImageExtractor):
"title": text.unescape(title.partition(">")[2]).strip(),
}
- for url in text.extract_iter(page, "<a href=", " ", pos):
- yield Message.Queue, url.strip("\"'"), data
+ params = {"page": 1}
+ while True:
+ for url in text.extract_iter(page, "<a href=", " ", pos):
+ if "/i/" in url:
+ yield Message.Queue, url.strip("\"'"), data
+
+ if 'class="pagination' not in page or \
+ 'class="disabled">Last' in page:
+ return
+
+ params["page"] += 1
+ page = self.request(self.page_url, params=params).text
class AcidimgImageExtractor(ImagehostImageExtractor):