Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to option 15 novel series downloader #1268

Merged
merged 1 commit into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PixivNovel.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ def parse_series_content(self, page_info, current_page):
errorCode=PixivException.UNKNOWN_IMAGE_ERROR,
htmlPage=page_info)

self.series_list.extend(js["body"]["seriesContents"])
self.series_list.extend(js["body"]["page"]["seriesContents"])
self.series_list_str[current_page] = page_info
2 changes: 1 addition & 1 deletion PixivNovelHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ def process_novel_series(caller,
while (flag):
PixivHelper.print_and_log(None, f"Getting page = {page}")
novel_series = caller.__br__.getNovelSeriesContent(novel_series, current_page=page)
page = page + 1
if end_page > 0 and page > end_page:
PixivHelper.print_and_log(None, f"Page limit reached = {end_page}.")
flag = False
if (page * PixivNovel.MAX_LIMIT) >= novel_series.total:
PixivHelper.print_and_log(None, "No more novel.")
flag = False
page = page + 1

for novel in novel_series.series_list:
process_novel(caller,
Expand Down