fix scraping for streamhub
This commit is contained in:
doms9 2025-12-13 21:29:13 -05:00
parent 15ea61dcb3
commit 00000d9c19
4 changed files with 63 additions and 38 deletions

View file

@ -22,8 +22,7 @@ BASE_MIRRORS = [
"https://timstreams.top",
]
sport_genres = {
SPORT_GENRES = {
1: "Soccer",
2: "Motorsport",
3: "MMA",
@ -79,7 +78,7 @@ async def get_events(
if (genre := ev["genre"]) in {16, 17}:
continue
sport = sport_genres.get(genre, "Live Event")
sport = SPORT_GENRES.get(genre, "Live Event")
streams: list[dict[str, str]] = ev["streams"]