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]]:
|
||||
log.info("Refreshing API cache")
|
||||
|
||||
async with async_playwright() as p:
|
||||
try:
|
||||
browser, context = await network.browser(p)
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@ async def refresh_api_cache(
|
|||
client: httpx.AsyncClient,
|
||||
url: str,
|
||||
) -> dict[str, list[dict]]:
|
||||
now = Time.now()
|
||||
|
||||
log.info("Refreshing API cache")
|
||||
|
||||
data = {}
|
||||
|
|
@ -57,7 +55,7 @@ async def refresh_api_cache(
|
|||
|
||||
data["matches"] = json.loads(match[1])
|
||||
|
||||
data["timestamp"] = now.timestamp()
|
||||
data["timestamp"] = Time.now().timestamp()
|
||||
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue