Compare commits

...

4 commits

Author SHA1 Message Date
GitHub Actions Bot
9c55f29bef update M3U8 2025-11-16 08:01:15 -05:00
GitHub Actions Bot
84a15ca19e update EPG 2025-11-16 10:48:14 +00:00
GitHub Actions Bot
1647646e2e health log 2025-11-16 08:42:59 +00:00
doms9
00000d9b09 e 2025-11-16 02:31:30 -05:00
5 changed files with 5751 additions and 6935 deletions

9435
EPG/TV.xml

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -47,7 +47,6 @@ async def process_event(
async def refresh_html_cache(
client: httpx.AsyncClient,
url: str,
sport: str,
now_ts: float,
) -> dict[str, str | float]:
@ -61,6 +60,15 @@ async def refresh_html_cache(
soup = HTMLParser(r.text)
pattern = re.compile(r'Upcoming ([^"]*) Events', re.IGNORECASE)
h2_title = soup.css_first("h2").text(strip=True)
if sport_name := pattern.search(h2_title):
sport = sport_name[1]
else:
sport = "Event"
events = {}
for row in soup.css("table#eventsTable tbody tr"):
@ -96,7 +104,7 @@ async def refresh_html_cache(
async def get_events(
client: httpx.AsyncClient,
sport_urls: dict[str, str],
sport_urls: list[str],
cached_keys: set[str],
) -> list[dict[str, str]]:
@ -107,10 +115,9 @@ async def get_events(
refresh_html_cache(
client,
url,
sport,
now.timestamp(),
)
for sport, url in sport_urls.items()
for url in sport_urls
]
results = await asyncio.gather(*tasks)
@ -145,10 +152,10 @@ async def scrape(client: httpx.AsyncClient) -> None:
log.info(f'Scraping from "{BASE_URL}"')
sport_urls = {
sport: urljoin(BASE_URL, sport.lower())
for sport in ["Soccer", "MLB", "NBA", "NFL", "Fighting", "Motorsports"]
}
sport_urls = [
urljoin(BASE_URL, sport)
for sport in ["fighting", "mlb", "motorsports", "nba", "nfl", "soccer"]
]
events = await get_events(
client,

View file

@ -1,10 +1,10 @@
## Base Log @ 2025-11-16 03:36 UTC
## Base Log @ 2025-11-16 08:42 UTC
### ✅ Working Streams: 147<br>❌ Dead Streams: 1
| Channel | Error (Code) | Link |
| ------- | ------------ | ---- |
| FDSN Oklahoma | HTTP Error (403) | `http://nocable.cc:8080/91161088/91161088/20934` |
| FDSN Florida | HTTP Error (403) | `http://nocable.cc:8080/91161088/91161088/46794` |
---
#### Base Channels URL
```