e
This commit is contained in:
parent
8094466d7d
commit
00000d99d8
15 changed files with 402 additions and 30 deletions
|
|
@ -16,6 +16,8 @@ API_FILE = Cache("ppv-api.json", exp=19_800)
|
|||
|
||||
BASE_URL = "https://ppv.to"
|
||||
|
||||
TAG = "PPV"
|
||||
|
||||
|
||||
async def refresh_api_cache(
|
||||
client: httpx.AsyncClient,
|
||||
|
|
@ -70,7 +72,7 @@ async def get_events(
|
|||
if not (name and start_ts and iframe):
|
||||
continue
|
||||
|
||||
key = f"[{sport}] {name} (PPV)"
|
||||
key = f"[{sport}] {name} ({TAG})"
|
||||
|
||||
if cached_keys & {key}:
|
||||
continue
|
||||
|
|
@ -134,7 +136,7 @@ async def scrape(client: httpx.AsyncClient) -> None:
|
|||
ev["timestamp"],
|
||||
)
|
||||
|
||||
key = f"[{sport}] {event} (PPV)"
|
||||
key = f"[{sport}] {event} ({TAG})"
|
||||
|
||||
tvg_id, pic = leagues.get_tvg_info(sport, event)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue