aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/webtoons.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/webtoons.py')
-rw-r--r--gallery_dl/extractor/webtoons.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/gallery_dl/extractor/webtoons.py b/gallery_dl/extractor/webtoons.py
index 949c7cb..70ab259 100644
--- a/gallery_dl/extractor/webtoons.py
+++ b/gallery_dl/extractor/webtoons.py
@@ -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