This commit is contained in:
doms9 2025-09-30 17:27:42 -04:00
parent e0e04c8635
commit 00000d9362
10 changed files with 230 additions and 9 deletions

View file

@ -21,7 +21,7 @@ class Leagues:
def teams(self, league: str) -> list[str]:
return self.data["teams"].get(league, [])
def info(self, name: str) -> tuple[str | None, str]:
def info(self, name: str) -> tuple[str | str]:
name = name.upper()
if match := next(
@ -38,7 +38,7 @@ class Leagues:
return (tvg_id, logo or live_img)
return (None, live_img)
return ("Live.Event.us", live_img)
def is_valid(self, event: str, league: str) -> bool:
if match := re.search(r"(\-|vs.?)", event):