Skip to content

Commit

Permalink
🐛 修复了Biliplus无法正常解析200章以上漫画的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
shadlc committed May 17, 2024
1 parent bd40e31 commit 79d7597
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/BiliPlus.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ def retrieveAvailableEpisode(self, episodes: list[BiliPlusEpisode], comic_id: st
biliplus_html = ""

@retry(stop_max_delay=MAX_RETRY_SMALL, wait_exponential_multiplier=RETRY_WAIT_EX)
def _() -> str:
def _(url: str) -> str:
try:
res = requests.post(
biliplus_detail_url,
url,
headers=self.headers,
timeout=TIMEOUT_SMALL,
)
Expand All @@ -207,7 +207,7 @@ def _() -> str:
return res.text

try:
biliplus_html = _()
biliplus_html = _(biliplus_detail_url)
if "" == biliplus_html:
return None
if "cookie invalid" == biliplus_html:
Expand Down
2 changes: 1 addition & 1 deletion src/ui/MangaUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def updateMyLibrarySingle(self, comic_id: int, comic_path: str) -> int | None:
comic_path (str): 漫画保存路径
"""

comic = BiliPlusComic(comic_id, self.mainGUI)
comic = Comic(comic_id, self.mainGUI)
data = comic.getComicInfo()
# ? 获取漫画信息失败直接跳过
if not data:
Expand Down

0 comments on commit 79d7597

Please sign in to comment.