diff --git a/M3U8/scrapers/livetvsx.py b/M3U8/scrapers/livetvsx.py index 30301db0..17d08a74 100644 --- a/M3U8/scrapers/livetvsx.py +++ b/M3U8/scrapers/livetvsx.py @@ -149,7 +149,8 @@ async def refresh_xml_cache(now_ts: float) -> dict[str, dict[str, str | float]]: event_dt = Time.from_str(date) - key = f"[{sport} - {league}] {title} ({TAG})" + if (key := f"[{sport} - {league}] {title} ({TAG})") in events: + continue events[key] = { "sport": sport, diff --git a/M3U8/scrapers/streamsgate.py b/M3U8/scrapers/streamsgate.py index ffe3a4dc..720b3fa2 100644 --- a/M3U8/scrapers/streamsgate.py +++ b/M3U8/scrapers/streamsgate.py @@ -84,6 +84,9 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]: t1, t2 = stream_group.get("away"), stream_group.get("home") + if not (t1 and t2): + continue + event = get_event(t1, t2) if not (date and sport): diff --git a/M3U8/scrapers/totalsportek1.py b/M3U8/scrapers/totalsportek1.py index 74a7d3d5..ecde60e1 100644 --- a/M3U8/scrapers/totalsportek1.py +++ b/M3U8/scrapers/totalsportek1.py @@ -14,7 +14,7 @@ TAG = "TOTALSPRTK1" CACHE_FILE = Cache(TAG, exp=28_800) -BASE_URL = "https://live.totalsportekarmy.com" +BASE_URL = "https://live.totalsportek.foo" def fix_txt(s: str) -> str: diff --git a/M3U8/scrapers/totalsportek3.py b/M3U8/scrapers/totalsportek3.py index 0c90d96d..d8338fc1 100644 --- a/M3U8/scrapers/totalsportek3.py +++ b/M3U8/scrapers/totalsportek3.py @@ -15,7 +15,7 @@ TAG = "TOTALSPRTK3" CACHE_FILE = Cache(TAG, exp=28_800) -BASE_URL = "https://live3.totalsportekarmy.com" +BASE_URL = "https://live3.totalsportek.foo" def fix_txt(s: str) -> str: