sprint1: agent queue worker, proxy support, auto-mark-on-navigate-away, test fixes

This commit is contained in:
Gan, Jimmy
2026-07-08 22:05:05 +08:00
parent a154bc7978
commit ffa47a1335
8 changed files with 429 additions and 28 deletions
+5 -1
View File
@@ -99,7 +99,11 @@ async def fetch_subscriptions():
# Step 3: Fetch RSS from slice channels (free, parallel)
rss_videos = {}
async with httpx.AsyncClient(timeout=20) as client:
async with httpx.AsyncClient(
proxy=os.environ.get("HTTP_PROXY") or os.environ.get("http_proxy") or
os.environ.get("HTTPS_PROXY") or os.environ.get("https_proxy") or None,
timeout=20
) as client:
tasks = [_fetch_rss(client, cid) for cid in slice_ids]
results = await asyncio.gather(*tasks)
for cid, entries in zip(slice_ids, results):