update M3U8
This commit is contained in:
parent
21dbfacf9c
commit
e5d058e822
4 changed files with 1387 additions and 563 deletions
972
M3U8/TV.m3u8
972
M3U8/TV.m3u8
File diff suppressed because it is too large
Load diff
972
M3U8/events.m3u8
972
M3U8/events.m3u8
File diff suppressed because it is too large
Load diff
|
|
@ -15,8 +15,6 @@ BASE_URL = "https://pixelsport.tv/backend/livetv/events"
|
||||||
|
|
||||||
|
|
||||||
async def get_api_data(url: str) -> dict[str, list[dict, str, str]]:
|
async def get_api_data(url: str) -> dict[str, list[dict, str, str]]:
|
||||||
log.info("Refreshing API cache")
|
|
||||||
|
|
||||||
async with async_playwright() as p:
|
async with async_playwright() as p:
|
||||||
try:
|
try:
|
||||||
browser, context = await network.browser(p)
|
browser, context = await network.browser(p)
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,6 @@ async def refresh_api_cache(
|
||||||
client: httpx.AsyncClient,
|
client: httpx.AsyncClient,
|
||||||
url: str,
|
url: str,
|
||||||
) -> dict[str, list[dict]]:
|
) -> dict[str, list[dict]]:
|
||||||
now = Time.now()
|
|
||||||
|
|
||||||
log.info("Refreshing API cache")
|
log.info("Refreshing API cache")
|
||||||
|
|
||||||
data = {}
|
data = {}
|
||||||
|
|
@ -57,7 +55,7 @@ async def refresh_api_cache(
|
||||||
|
|
||||||
data["matches"] = json.loads(match[1])
|
data["matches"] = json.loads(match[1])
|
||||||
|
|
||||||
data["timestamp"] = now.timestamp()
|
data["timestamp"] = Time.now().timestamp()
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue