From 00000d93a43cd9e4744ced817100b408d82396ef Mon Sep 17 00:00:00 2001 From: doms9 <96013514+doms9@users.noreply.github.com> Date: Wed, 10 Dec 2025 13:28:13 -0500 Subject: [PATCH] e added proxy for streamfree --- M3U8/fetch.py | 2 +- M3U8/scrapers/streamfree.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/M3U8/fetch.py b/M3U8/fetch.py index 66d463e..a623aba 100644 --- a/M3U8/fetch.py +++ b/M3U8/fetch.py @@ -56,7 +56,7 @@ async def main() -> None: asyncio.create_task(sport9.scrape(network.client)), asyncio.create_task(streambtw.scrape(network.client)), asyncio.create_task(streamcenter.scrape(network.client)), - # asyncio.create_task(streamfree.scrape(network.client)), + asyncio.create_task(streamfree.scrape(network.client)), asyncio.create_task(streamsgate.scrape(network.client)), asyncio.create_task(strmd.scrape(network.client)), asyncio.create_task(tvpass.scrape(network.client)), diff --git a/M3U8/scrapers/streamfree.py b/M3U8/scrapers/streamfree.py index 64dd4a2..fba3107 100644 --- a/M3U8/scrapers/streamfree.py +++ b/M3U8/scrapers/streamfree.py @@ -1,4 +1,4 @@ -from urllib.parse import urljoin +from urllib.parse import quote, urljoin import httpx @@ -35,6 +35,8 @@ async def get_events(client: httpx.AsyncClient) -> dict[str, dict[str, str | flo events = {} + now = Time.now().timestamp() + for streams in api_data.get("streams", {}).values(): if not streams: continue @@ -60,10 +62,10 @@ async def get_events(client: httpx.AsyncClient) -> dict[str, dict[str, str | flo tvg_id, pic = leagues.get_tvg_info(sport, name) events[key] = { - "url": urljoin(BASE_URL, f"live/{stream_key}720p/index.m3u8"), + "url": f"https://stream.nvrmind.xyz/strmfr/{stream_key}720p/index.m3u8?stream_name={quote(name)}", "logo": logo or pic, "base": BASE_URL, - "timestamp": Time.now().timestamp(), + "timestamp": now, "id": tvg_id or "Live.Event.us", }