From 00000d9c84eb893fda0d013c2e54720caae5b882 Mon Sep 17 00:00:00 2001 From: doms9 <96013514+doms9@users.noreply.github.com> Date: Sat, 2 May 2026 15:39:02 -0400 Subject: [PATCH] e - misc edits. --- M3U8/scrapers/embedhd.py | 2 +- M3U8/scrapers/fsports.py | 2 +- M3U8/scrapers/streamcenter.py | 2 +- M3U8/scrapers/streamhub.py | 7 ++++++- M3U8/scrapers/streamsgate.py | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/M3U8/scrapers/embedhd.py b/M3U8/scrapers/embedhd.py index aee3601b..61f9f463 100644 --- a/M3U8/scrapers/embedhd.py +++ b/M3U8/scrapers/embedhd.py @@ -124,7 +124,7 @@ async def scrape(browser: Browser) -> None: entry = { "url": url, "logo": logo, - "base": "https://exposestrat.com/", + "base": "https://hoca6.com/", "timestamp": ts, "id": tvg_id or "Live.Event.us", "link": link, diff --git a/M3U8/scrapers/fsports.py b/M3U8/scrapers/fsports.py index f02bbd07..3233117b 100644 --- a/M3U8/scrapers/fsports.py +++ b/M3U8/scrapers/fsports.py @@ -104,7 +104,7 @@ async def scrape(browser: Browser) -> None: entry = { "url": url, "logo": logo, - "base": "https://exposestrat.com/", + "base": "https://hoca6.com/", "timestamp": now.timestamp(), "id": tvg_id or "Live.Event.us", "link": link, diff --git a/M3U8/scrapers/streamcenter.py b/M3U8/scrapers/streamcenter.py index 98986c96..9300134a 100644 --- a/M3U8/scrapers/streamcenter.py +++ b/M3U8/scrapers/streamcenter.py @@ -10,7 +10,7 @@ urls: dict[str, dict[str, str | float]] = {} TAG = "STRMCNTR" -CACHE_FILE = Cache(TAG, exp=28_800) +CACHE_FILE = Cache(TAG, exp=86_400) API_URL = "https://backend.streamcenter.live/api/Parties" diff --git a/M3U8/scrapers/streamhub.py b/M3U8/scrapers/streamhub.py index 0289ccfa..5476b93d 100644 --- a/M3U8/scrapers/streamhub.py +++ b/M3U8/scrapers/streamhub.py @@ -97,9 +97,14 @@ async def process_event( pass if captured: + if "smarthard.click" not in (m3u8 := captured[0]).lower(): + log.warning(f"URL {url_num}) Invalid M3U8 found.") + + return + log.info(f"URL {url_num}) Captured M3U8") - return captured[0] + return m3u8 log.warning(f"URL {url_num}) No M3U8 captured after waiting.") diff --git a/M3U8/scrapers/streamsgate.py b/M3U8/scrapers/streamsgate.py index 920ee74a..6c5797ec 100644 --- a/M3U8/scrapers/streamsgate.py +++ b/M3U8/scrapers/streamsgate.py @@ -14,7 +14,7 @@ urls: dict[str, dict[str, str | float]] = {} TAG = "STRMSGATE" -CACHE_FILE = Cache(TAG, exp=28_800) +CACHE_FILE = Cache(TAG, exp=19_800) BASE_URL = "https://streamsgates.io"