mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
This commit is contained in:
parent
8b2d8cc1fc
commit
00000d939c
20 changed files with 119 additions and 12 deletions
|
|
@ -55,7 +55,9 @@ async def get_events() -> dict[str, dict[str, str | float]]:
|
|||
continue
|
||||
|
||||
event_name = event["match_name"]
|
||||
|
||||
channel_info: dict[str, str] = event["channel"]
|
||||
|
||||
category: dict[str, str] = channel_info["TVCategory"]
|
||||
|
||||
sport = category["name"]
|
||||
|
|
@ -82,7 +84,9 @@ async def get_events() -> dict[str, dict[str, str | float]]:
|
|||
async def scrape() -> None:
|
||||
if cached := CACHE_FILE.load():
|
||||
urls.update(cached)
|
||||
|
||||
log.info(f"Loaded {len(urls)} event(s) from cache")
|
||||
|
||||
return
|
||||
|
||||
log.info(f'Scraping from "{BASE_URL}"')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue