[webtoons] extract 'episode_no' for comic results (#6439)

This commit is contained in:
Mike Fährmann
2024-11-08 14:16:54 +01:00
parent 77f761d320
commit b6cf348658
2 changed files with 20 additions and 3 deletions

View File

@@ -155,7 +155,10 @@ class WebtoonsComicExtractor(WebtoonsBase, Extractor):
def items(self):
page = None
data = {"_extractor": WebtoonsEpisodeExtractor}
data = {
"_extractor": WebtoonsEpisodeExtractor,
"title_no" : text.parse_int(self.title_no),
}
while True:
path = "/{}/list?title_no={}&page={}".format(
@@ -173,6 +176,8 @@ class WebtoonsComicExtractor(WebtoonsBase, Extractor):
data["page"] = self.page_no
for url in self.get_episode_urls(page):
params = text.parse_query(url.rpartition("?")[2])
data["episode_no"] = text.parse_int(params.get("episode_no"))
yield Message.Queue, url, data
self.page_no += 1