e
This commit is contained in:
parent
b8705fe8f8
commit
00000d985f
3 changed files with 11 additions and 10 deletions
|
|
@ -11,10 +11,7 @@ log = get_logger(__name__)
|
||||||
|
|
||||||
urls: dict[str, dict[str, str]] = {}
|
urls: dict[str, dict[str, str]] = {}
|
||||||
|
|
||||||
MIRRORS = [
|
MIRRORS = ["https://aceztrims.pages.dev/", "https://acestrlms.pages.dev/"]
|
||||||
"https://aceztrims.pages.dev/",
|
|
||||||
"https://acestrlms.pages.dev/",
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def is_valid_href(a: Node) -> bool:
|
def is_valid_href(a: Node) -> bool:
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,6 @@ MIRRORS = [
|
||||||
"https://thestreameast.su",
|
"https://thestreameast.su",
|
||||||
]
|
]
|
||||||
|
|
||||||
LOGOS["CFB"] = LOGOS["NCAAF"]
|
|
||||||
LOGOS["CBB"] = LOGOS["NCAAB"]
|
|
||||||
|
|
||||||
|
|
||||||
async def process_event(url: str, url_num: int) -> str | None:
|
async def process_event(url: str, url_num: int) -> str | None:
|
||||||
async with async_playwright() as p:
|
async with async_playwright() as p:
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,7 @@ LOGOS = {
|
||||||
"default": "https://i.gyazo.com/ec27417a9644ae517196494afa72d2b9.png",
|
"default": "https://i.gyazo.com/ec27417a9644ae517196494afa72d2b9.png",
|
||||||
"MLB": "https://i.gyazo.com/0fe7865ef2f06c9507791b24f04dbca8.png",
|
"MLB": "https://i.gyazo.com/0fe7865ef2f06c9507791b24f04dbca8.png",
|
||||||
"NBA": "https://i.gyazo.com/773c23570f095a5d549c23b9401d83f4.png",
|
"NBA": "https://i.gyazo.com/773c23570f095a5d549c23b9401d83f4.png",
|
||||||
"NCAAF": "https://i.gyazo.com/ca63b40c86e757436de9d34d369b24f8.png",
|
"NCAA": "https://i.gyazo.com/ca63b40c86e757436de9d34d369b24f8.png",
|
||||||
"NCAAB": "https://i.gyazo.com/ca63b40c86e757436de9d34d369b24f8.png",
|
|
||||||
"NFL": "https://i.gyazo.com/fb4956d7a2fe54a1bac54cd81e1b3f11.png",
|
"NFL": "https://i.gyazo.com/fb4956d7a2fe54a1bac54cd81e1b3f11.png",
|
||||||
"NHL": "https://i.gyazo.com/526607d4e886d5ed1fecca4bff3115e2.png",
|
"NHL": "https://i.gyazo.com/526607d4e886d5ed1fecca4bff3115e2.png",
|
||||||
"WNBA": "https://i.gyazo.com/02d665a5704118d195dbcd5fa20d5462.png",
|
"WNBA": "https://i.gyazo.com/02d665a5704118d195dbcd5fa20d5462.png",
|
||||||
|
|
@ -38,7 +37,15 @@ LOGOS = {
|
||||||
"Primeira Liga": "https://i.gyazo.com/0b9ff26408609ccb90bf45d60aa13500.png",
|
"Primeira Liga": "https://i.gyazo.com/0b9ff26408609ccb90bf45d60aa13500.png",
|
||||||
"MLS": "https://i.gyazo.com/014b639a369d2bd8a4b97d00a239f330.png",
|
"MLS": "https://i.gyazo.com/014b639a369d2bd8a4b97d00a239f330.png",
|
||||||
}
|
}
|
||||||
LOGOS["EPL"] = LOGOS["Premier League"]
|
|
||||||
|
alias_map = {
|
||||||
|
"NCAA": ["NCAAF", "NCAAB", "CBB", "CFB"],
|
||||||
|
"Premier League": ["EPL"],
|
||||||
|
}
|
||||||
|
|
||||||
|
for base, aliases in alias_map.items():
|
||||||
|
for alias in aliases:
|
||||||
|
LOGOS[alias] = LOGOS[base]
|
||||||
|
|
||||||
LOG_FMT = (
|
LOG_FMT = (
|
||||||
"[%(asctime)s] "
|
"[%(asctime)s] "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue