added proxy for streamfree
This commit is contained in:
doms9 2025-12-10 13:28:13 -05:00
parent 0f2ebd90ad
commit 00000d93a4
2 changed files with 6 additions and 4 deletions

View file

@ -56,7 +56,7 @@ async def main() -> None:
asyncio.create_task(sport9.scrape(network.client)), asyncio.create_task(sport9.scrape(network.client)),
asyncio.create_task(streambtw.scrape(network.client)), asyncio.create_task(streambtw.scrape(network.client)),
asyncio.create_task(streamcenter.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(streamsgate.scrape(network.client)),
asyncio.create_task(strmd.scrape(network.client)), asyncio.create_task(strmd.scrape(network.client)),
asyncio.create_task(tvpass.scrape(network.client)), asyncio.create_task(tvpass.scrape(network.client)),

View file

@ -1,4 +1,4 @@
from urllib.parse import urljoin from urllib.parse import quote, urljoin
import httpx import httpx
@ -35,6 +35,8 @@ async def get_events(client: httpx.AsyncClient) -> dict[str, dict[str, str | flo
events = {} events = {}
now = Time.now().timestamp()
for streams in api_data.get("streams", {}).values(): for streams in api_data.get("streams", {}).values():
if not streams: if not streams:
continue 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) tvg_id, pic = leagues.get_tvg_info(sport, name)
events[key] = { 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, "logo": logo or pic,
"base": BASE_URL, "base": BASE_URL,
"timestamp": Time.now().timestamp(), "timestamp": now,
"id": tvg_id or "Live.Event.us", "id": tvg_id or "Live.Event.us",
} }