[webtoons] fix pagination when receiving an HTTP redirect

This commit is contained in:
Mike Fährmann
2023-11-24 22:17:34 +01:00
parent 23cd17997d
commit c8c744a7c0

View File

@@ -146,7 +146,12 @@ class WebtoonsComicExtractor(WebtoonsBase, Extractor):
if page and path not in page:
return
page = self.request(self.root + path).text
response = self.request(self.root + path)
if response.history:
parts = response.url.split("/")
self.path = "/".join(parts[3:-1])
page = response.text
data["page"] = self.page_no
for url in self.get_episode_urls(page):