Skip to content

Commit

Permalink
[hitomi] fix redirect processing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Aug 23, 2020
1 parent a57b6b3 commit 7140fe7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gallery_dl/extractor/hitomi.py
Expand Up @@ -111,9 +111,9 @@ def _data_from_gallery_page(self, info):
response = self.request(url, fatal=False)
if b"<title>Redirect</title>" not in response.content:
break
url = text.extract(response.text, "href='", "'")[0]
if not url.startswith("http"):
url = text.urljoin(self.root, url)
url = text.extract(
response.text, 'http-equiv="refresh" content="', '"',
)[0].partition("=")[2]

if response.status_code >= 400:
return {}
Expand Down

0 comments on commit 7140fe7

Please sign in to comment.