e
This commit is contained in:
parent
00000d94a2
commit
00000d9a95
12 changed files with 160 additions and 55 deletions
|
|
@ -9,11 +9,11 @@ from playwright.async_api import async_playwright
|
|||
from selectolax.parser import HTMLParser
|
||||
|
||||
from .utils import (
|
||||
LOGOS,
|
||||
TZ,
|
||||
capture_req,
|
||||
get_base,
|
||||
get_logger,
|
||||
league_info,
|
||||
load_cache,
|
||||
new_browser,
|
||||
now,
|
||||
|
|
@ -146,7 +146,6 @@ async def get_events(
|
|||
"sport": sport,
|
||||
"event": name,
|
||||
"link": href,
|
||||
"logo": LOGOS.get(sport, LOGOS["default"]),
|
||||
}
|
||||
)
|
||||
|
||||
|
|
@ -183,13 +182,16 @@ async def main(client: httpx.AsyncClient) -> None:
|
|||
)
|
||||
|
||||
if url:
|
||||
key = f"[{ev['sport']}] {ev['event']} (SEAST)"
|
||||
sport, event = ev["sport"], ev["event"]
|
||||
|
||||
key = f"[{sport}] {event} (SEAST)"
|
||||
|
||||
entry = {
|
||||
"url": url,
|
||||
"logo": ev["logo"],
|
||||
"logo": league_info(sport)["logo"],
|
||||
"base": base_url,
|
||||
"timestamp": now.timestamp(),
|
||||
"tvg-id": league_info(sport)["id"],
|
||||
}
|
||||
|
||||
urls[key] = cached_urls[key] = entry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue