update M3U8

This commit is contained in:
GitHub Actions Bot 2025-11-18 12:03:46 -05:00
parent 6eaf99470d
commit 424ca1c807
4 changed files with 1209 additions and 441 deletions

View file

@ -1,5 +1,6 @@
import asyncio
import logging
import random
import re
from collections.abc import Awaitable, Callable
from functools import partial
@ -40,6 +41,8 @@ class Network:
return False
async def get_base(self, mirrors: list[str]) -> str | None:
random.shuffle(mirrors)
tasks = [self.check_status(link) for link in mirrors]
results = await asyncio.gather(*tasks, return_exceptions=True)