mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
fix scraping for streamhub
This commit is contained in:
parent
15ea61dcb3
commit
00000d9c19
4 changed files with 63 additions and 38 deletions
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue