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

修复BiliPlus Cookie #126

Merged
merged 2 commits into from
Mar 30, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BiliPlus.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, comic_id: int, mainGUI: MainGUI) -> None:
self.access_key = mainGUI.getConfig("biliplus_cookie")
self.headers = {
"User-Agent": f"{__app_name__}/{__version__}",
"cookie": f"manga_pic_format=jpg-full;login=2;access_key={self.access_key}",
"cookie": f"manga_pic_format=jpg-full;manga_sharing=on;login=2;access_key={self.access_key}",
}

############################################################
Expand Down
2 changes: 1 addition & 1 deletion src/ui/SettingUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def check_biliplus_cookie_valid(self, cookie: str, notice: bool = False) -> bool
#! 此处对Cookie是否有效验证使用了硬编码,如果该漫画或该章节变更,需要修改才能继续正常验证
main_url = "https://www.biliplus.com/manga/?act=read&mangaid=26551&epid=316882"
headers = {
"cookie": f"login=2;access_key={cookie}",
"cookie": f"login=2;manga_sharing=on;access_key={cookie}",
}
is_cookie_valid = False

Expand Down