e
This commit is contained in:
parent
e0e04c8635
commit
00000d9362
10 changed files with 230 additions and 9 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue