[webtoons] extract 'episode_no' for comic results (#6439)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user