diff --git a/M3U8/scrapers/ace.py b/M3U8/scrapers/ace.py index d4f151c..0345378 100644 --- a/M3U8/scrapers/ace.py +++ b/M3U8/scrapers/ace.py @@ -11,10 +11,7 @@ log = get_logger(__name__) urls: dict[str, dict[str, str]] = {} -MIRRORS = [ - "https://aceztrims.pages.dev/", - "https://acestrlms.pages.dev/", -] +MIRRORS = ["https://aceztrims.pages.dev/", "https://acestrlms.pages.dev/"] def is_valid_href(a: Node) -> bool: diff --git a/M3U8/scrapers/streameast.py b/M3U8/scrapers/streameast.py index 70d8e59..a2474cd 100644 --- a/M3U8/scrapers/streameast.py +++ b/M3U8/scrapers/streameast.py @@ -45,9 +45,6 @@ MIRRORS = [ "https://thestreameast.su", ] -LOGOS["CFB"] = LOGOS["NCAAF"] -LOGOS["CBB"] = LOGOS["NCAAB"] - async def process_event(url: str, url_num: int) -> str | None: async with async_playwright() as p: diff --git a/M3U8/scrapers/utils/config.py b/M3U8/scrapers/utils/config.py index 777b47b..6c7d9e0 100644 --- a/M3U8/scrapers/utils/config.py +++ b/M3U8/scrapers/utils/config.py @@ -25,8 +25,7 @@ LOGOS = { "default": "https://i.gyazo.com/ec27417a9644ae517196494afa72d2b9.png", "MLB": "https://i.gyazo.com/0fe7865ef2f06c9507791b24f04dbca8.png", "NBA": "https://i.gyazo.com/773c23570f095a5d549c23b9401d83f4.png", - "NCAAF": "https://i.gyazo.com/ca63b40c86e757436de9d34d369b24f8.png", - "NCAAB": "https://i.gyazo.com/ca63b40c86e757436de9d34d369b24f8.png", + "NCAA": "https://i.gyazo.com/ca63b40c86e757436de9d34d369b24f8.png", "NFL": "https://i.gyazo.com/fb4956d7a2fe54a1bac54cd81e1b3f11.png", "NHL": "https://i.gyazo.com/526607d4e886d5ed1fecca4bff3115e2.png", "WNBA": "https://i.gyazo.com/02d665a5704118d195dbcd5fa20d5462.png", @@ -38,7 +37,15 @@ LOGOS = { "Primeira Liga": "https://i.gyazo.com/0b9ff26408609ccb90bf45d60aa13500.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 = ( "[%(asctime)s] "