update M3U8
This commit is contained in:
parent
140404133d
commit
ed308b2cf7
3 changed files with 161 additions and 183 deletions
|
|
@ -14,7 +14,7 @@ urls: dict[str, dict[str, str | float]] = {}
|
|||
|
||||
CACHE_FILE = Cache(Path(__file__).parent / "caches" / "streameast.json", exp=10_800)
|
||||
|
||||
subdmns = {
|
||||
prefix = {
|
||||
"ch": None,
|
||||
"sg": None,
|
||||
"tw": None,
|
||||
|
|
@ -32,8 +32,10 @@ subdmns = {
|
|||
"su": "the",
|
||||
}
|
||||
|
||||
MIRRORS = [f"https://streameast.{ext}" for ext in subdmns if not subdmns[ext]]
|
||||
MIRRORS.extend([f"https://thestreameast.{ext}" for ext in subdmns if subdmns[ext]])
|
||||
MIRRORS = [
|
||||
*[f"https://streameast.{ext}" for ext in prefix if not prefix[ext]],
|
||||
*[f"https://thestreameast.{ext}" for ext in prefix if prefix[ext] == "the"],
|
||||
]
|
||||
|
||||
|
||||
async def get_events(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue