Skip to content

Commit

Permalink
Fix webnovel source
Browse files Browse the repository at this point in the history
  • Loading branch information
ihazpink authored and dipu-bd committed Feb 27, 2025
1 parent 1c9dc5c commit 56bbfb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/en/w/webnovel.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def initialize(self) -> None:

def get_csrf(self):
logger.info("Getting CSRF Token")
self.get_response(self.home_url)
self.get_response(f"{self.home_url}stories/novel")
self.csrf = self.cookies["_csrfToken"]
logger.debug("CSRF Token = %s", self.csrf)

Expand Down Expand Up @@ -94,8 +94,8 @@ def read_novel_info_in_soup(self):
self.novel_title = book_info["bookName"]

self.novel_cover = (
f"{self.origin.scheme}://img.webnovel.com/bookcover/{self.novel_id}/600/600.jpg"
+ f"?coverUpdateTime{int(1000 * time())}&imageMogr2/quality/40"
f"{self.origin.scheme}://book-pic.webnovel.com/bookcover/{self.novel_id}"
+ f"?coverUpdateTime{int(1000 * time())}&imageMogr2/thumbnail/600x"
)

if "authorName" in book_info:
Expand Down

0 comments on commit 56bbfb5

Please sign in to comment.