v0.5.84: matches origin filter, mobile gate, refresh reliability.

Ship Web refresh cache/lock, mobile demand gate, matches 职业/国服 filter, and related site updates through 0.5.84.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
voson
2026-07-29 18:31:55 +08:00
co-authored by Cursor
parent 7681fdb069
commit b01552ee6e
50 changed files with 3406 additions and 487 deletions
+2 -5
View File
@@ -32,6 +32,7 @@ import urllib.request
from datetime import datetime, timezone
from typing import Any
from shared.http_utils import write_json_atomic
from shared.paths import DATA, STREAMER_AVATARS
OUT = DATA / "streamers.json"
@@ -94,11 +95,7 @@ def _load(path: Path) -> dict:
def _save(path: Path, payload: dict) -> None:
path.parent.mkdir(parents=True, exist_ok=True)
path.write_text(
json.dumps(payload, ensure_ascii=False, indent=2) + "\n",
encoding="utf-8",
)
write_json_atomic(path, payload)
def _opener() -> urllib.request.OpenerDirector: