- misc edits.
This commit is contained in:
doms9 2026-05-02 15:39:02 -04:00
parent c8ed911944
commit 00000d9c84
5 changed files with 10 additions and 5 deletions

View file

@ -124,7 +124,7 @@ async def scrape(browser: Browser) -> None:
entry = { entry = {
"url": url, "url": url,
"logo": logo, "logo": logo,
"base": "https://exposestrat.com/", "base": "https://hoca6.com/",
"timestamp": ts, "timestamp": ts,
"id": tvg_id or "Live.Event.us", "id": tvg_id or "Live.Event.us",
"link": link, "link": link,

View file

@ -104,7 +104,7 @@ async def scrape(browser: Browser) -> None:
entry = { entry = {
"url": url, "url": url,
"logo": logo, "logo": logo,
"base": "https://exposestrat.com/", "base": "https://hoca6.com/",
"timestamp": now.timestamp(), "timestamp": now.timestamp(),
"id": tvg_id or "Live.Event.us", "id": tvg_id or "Live.Event.us",
"link": link, "link": link,

View file

@ -10,7 +10,7 @@ urls: dict[str, dict[str, str | float]] = {}
TAG = "STRMCNTR" TAG = "STRMCNTR"
CACHE_FILE = Cache(TAG, exp=28_800) CACHE_FILE = Cache(TAG, exp=86_400)
API_URL = "https://backend.streamcenter.live/api/Parties" API_URL = "https://backend.streamcenter.live/api/Parties"

View file

@ -97,9 +97,14 @@ async def process_event(
pass pass
if captured: 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") log.info(f"URL {url_num}) Captured M3U8")
return captured[0] return m3u8
log.warning(f"URL {url_num}) No M3U8 captured after waiting.") log.warning(f"URL {url_num}) No M3U8 captured after waiting.")

View file

@ -14,7 +14,7 @@ urls: dict[str, dict[str, str | float]] = {}
TAG = "STRMSGATE" TAG = "STRMSGATE"
CACHE_FILE = Cache(TAG, exp=28_800) CACHE_FILE = Cache(TAG, exp=19_800)
BASE_URL = "https://streamsgates.io" BASE_URL = "https://streamsgates.io"