Skip to content

Commit

Permalink
v0.1.7 update acg.rip cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
tastysugar committed Nov 16, 2023
1 parent a10e44b commit 368409a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 870 deletions.
2 changes: 1 addition & 1 deletion OKPLogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from ProcessWindow import MyConsole
import platform

VERSION = "v0.1.6 Beta"
VERSION = "v0.1.7 Beta"

CATEGORY = {
'Anime': ['Default', 'MV', 'TV', 'Movie', 'Collection', 'Raw', 'English'],
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,14 @@ _以下排名无先后_
```
python -m venv venv
venv\Scripts\activate.bat
pip3 install requirements.txt
pip3 install install setuptools==57.5.0 --upgrade
pip3 install -r requirements.txt
```

如果使用非 cmd,请将第二步换成对应的脚本。

第三步是因为安装 html2phpbbcode 需要 use_2to3 支持。

运行 `main.py` 或者 `OKPLogic.py` 即可开始 debug。

如果需要改变 UI,请使用 [qt designer](https://build-system.fman.io/qt-designer-download) 打开 OKP.ui 或者其他 .ui 文件,在完成编辑后请调用 `Compile_UI.bat` 来将 .ui 文件编译为 .py 文件。
Expand Down
2 changes: 1 addition & 1 deletion WebHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def filterCookies(cookie: QNetworkCookie) -> bool:
if bytestostr(cookie.name().data()) == "session":
return True
if cookie.domain() == "acg.rip":
if bytestostr(cookie.name().data()) == "remember_user_token":
if bytestostr(cookie.name().data()) == "_kanako_session":
return True
if cookie.domain() == "bangumi.moe":
if bytestostr(cookie.name().data()) in {"locale", "koa:sess", "koa:sess.sig"}:
Expand Down
Loading

0 comments on commit 368409a

Please sign in to comment.