Skip to content

Commit

Permalink
Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kardigun authored and dipu-bd committed Jan 4, 2025
1 parent 688f733 commit abf5c9d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sources/en/n/novelight.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
import re
from typing import List
from urllib.parse import quote_plus
from urllib.parse import quote_plus, urlencode

from bs4 import Tag

Expand Down Expand Up @@ -83,8 +83,13 @@ def read_novel_info(self):
for page in reversed(chapters_lists):
if encountered_paid_chapter:
break
params = {
"csrfmiddlewaretoken": csrfmiddlewaretoken,
"book_id": book_id,
"page": page["value"]
}
chapters_response = self.get_json(
f"{self.home_url}book/ajax/chapter-pagination?csrfmiddlewaretoken={csrfmiddlewaretoken}&book_id={book_id}&page={page["value"]}",
f"{self.home_url}book/ajax/chapter-pagination?{urlencode(params)}",
headers=headers
)
chapters_soup = self.make_soup(chapters_response["html"])
Expand Down

0 comments on commit abf5c9d

Please sign in to comment.