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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user