sprint1: agent queue worker, proxy support, auto-mark-on-navigate-away, test fixes
This commit is contained in:
+5
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user