mirror of
https://github.com/doms9/iptv.git
synced 2026-03-10 11:47:34 +01:00
e
- add adblocking - edit roxie.py scraping method - edit tvapp.py scraping method - modify sports to scrape - misc edits
This commit is contained in:
parent
12d6d959f4
commit
00000d90e4
26 changed files with 59290 additions and 264 deletions
|
|
@ -18,8 +18,7 @@ CACHE_FILE = Cache(TAG, exp=10_800)
|
|||
BASE_URL = "https://xstreameast.com"
|
||||
|
||||
SPORT_ENDPOINTS = [
|
||||
# "f1",
|
||||
# "mlb",
|
||||
"mlb",
|
||||
"mma",
|
||||
"nba",
|
||||
# "nfl",
|
||||
|
|
@ -137,15 +136,15 @@ async def scrape() -> None:
|
|||
|
||||
events = await get_events(cached_urls.keys())
|
||||
|
||||
log.info(f"Processing {len(events)} new URL(s)")
|
||||
|
||||
if events:
|
||||
log.info(f"Processing {len(events)} new URL(s)")
|
||||
|
||||
now = Time.clean(Time.now())
|
||||
|
||||
for i, ev in enumerate(events, start=1):
|
||||
handler = partial(
|
||||
process_event,
|
||||
url=ev["link"],
|
||||
url=(link := ev["link"]),
|
||||
url_num=i,
|
||||
)
|
||||
|
||||
|
|
@ -156,11 +155,7 @@ async def scrape() -> None:
|
|||
log=log,
|
||||
)
|
||||
|
||||
sport, event, link = (
|
||||
ev["sport"],
|
||||
ev["event"],
|
||||
ev["link"],
|
||||
)
|
||||
sport, event = ev["sport"], ev["event"]
|
||||
|
||||
key = f"[{sport}] {event} ({TAG})"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue