diff --git a/gallery_dl/extractor/hitomi.py b/gallery_dl/extractor/hitomi.py index 42c88628..9ea9cbcd 100644 --- a/gallery_dl/extractor/hitomi.py +++ b/gallery_dl/extractor/hitomi.py @@ -67,7 +67,7 @@ class HitomiGalleryExtractor(GalleryExtractor): response = self.request(url, fatal=False) # follow redirects - if b"Redirect" in response.content: + while b"Redirect" in response.content: url = text.extract(response.text, "href='", "'")[0] if not url.startswith("http"): url = text.urljoin(self.root, url)