update M3U8
This commit is contained in:
parent
424ca1c807
commit
fa8a4938c9
4 changed files with 874 additions and 515 deletions
686
M3U8/TV.m3u8
686
M3U8/TV.m3u8
File diff suppressed because it is too large
Load diff
686
M3U8/events.m3u8
686
M3U8/events.m3u8
File diff suppressed because it is too large
Load diff
|
|
@ -34,7 +34,7 @@ async def refresh_api_cache(
|
||||||
timeout=10_000,
|
timeout=10_000,
|
||||||
)
|
)
|
||||||
|
|
||||||
raw_json = await page.locator("pre").inner_text()
|
raw_json = await page.locator("pre").inner_text(timeout=5_000)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(f'Failed to fetch "{url}": {e}')
|
log.error(f'Failed to fetch "{url}": {e}')
|
||||||
|
|
|
||||||
|
|
@ -14,18 +14,17 @@ urls: dict[str, dict[str, str | float]] = {}
|
||||||
CACHE_FILE = Cache("streameast.json", exp=10_800)
|
CACHE_FILE = Cache("streameast.json", exp=10_800)
|
||||||
|
|
||||||
prefixes = {
|
prefixes = {
|
||||||
"co": "the",
|
|
||||||
"sg": None,
|
|
||||||
"ms": None,
|
|
||||||
"fi": None,
|
|
||||||
"ps": None,
|
|
||||||
"cf": None,
|
|
||||||
"ch": None,
|
|
||||||
"tw": None,
|
|
||||||
"ga": None,
|
"ga": None,
|
||||||
"ph": None,
|
"ph": None,
|
||||||
|
"sg": None,
|
||||||
|
"ch": None,
|
||||||
"ec": None,
|
"ec": None,
|
||||||
|
"fi": None,
|
||||||
|
"ms": None,
|
||||||
|
"ps": None,
|
||||||
|
"cf": None,
|
||||||
"sk": None,
|
"sk": None,
|
||||||
|
"co": "the",
|
||||||
"fun": "the",
|
"fun": "the",
|
||||||
"ru": "the",
|
"ru": "the",
|
||||||
"su": "the",
|
"su": "the",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue