Compare commits

...

34 commits

Author SHA1 Message Date
GitHub Actions Bot
9cee75af8e update M3U8 2026-05-27 19:02:11 -04:00
GitHub Actions Bot
d58c67312f update M3U8 2026-05-27 18:31:16 -04:00
GitHub Actions Bot
01aba4bf0f health log 2026-05-27 22:17:05 +00:00
GitHub Actions Bot
db58351bc9 update M3U8 2026-05-27 18:00:41 -04:00
doms9
00000d9b6f e
- edit scraping for embedhd.py
2026-05-27 17:56:45 -04:00
GitHub Actions Bot
ba7b3f4c43 update M3U8 2026-05-27 17:30:23 -04:00
GitHub Actions Bot
e88ec91b3f update M3U8 2026-05-27 17:00:59 -04:00
GitHub Actions Bot
ae2005408c update EPG 2026-05-27 20:54:36 +00:00
GitHub Actions Bot
2c11f5c8b0 update M3U8 2026-05-27 16:30:29 -04:00
GitHub Actions Bot
bb56d06e39 update M3U8 2026-05-27 16:01:07 -04:00
GitHub Actions Bot
7bd9c86630 update M3U8 2026-05-27 15:30:34 -04:00
GitHub Actions Bot
d39a00c112 update M3U8 2026-05-27 15:01:01 -04:00
GitHub Actions Bot
fd2413966b update M3U8 2026-05-27 14:30:28 -04:00
GitHub Actions Bot
442a6c93cd update M3U8 2026-05-27 14:01:00 -04:00
GitHub Actions Bot
93b6bab708 health log 2026-05-27 17:41:32 +00:00
GitHub Actions Bot
d8b3bb5038 update M3U8 2026-05-27 13:31:33 -04:00
GitHub Actions Bot
2d8a1a897f update M3U8 2026-05-27 13:01:07 -04:00
GitHub Actions Bot
ef22759a00 update M3U8 2026-05-27 12:00:20 -04:00
GitHub Actions Bot
3b7b220ea7 update M3U8 2026-05-27 11:00:44 -04:00
GitHub Actions Bot
3bcb705aa2 update EPG 2026-05-27 14:02:51 +00:00
GitHub Actions Bot
70ca06ac35 update M3U8 2026-05-27 10:00:13 -04:00
GitHub Actions Bot
de9b3da2ab update M3U8 2026-05-27 09:00:47 -04:00
GitHub Actions Bot
3a1534a9f1 update M3U8 2026-05-27 08:01:18 -04:00
GitHub Actions Bot
4dbe4dca93 update EPG 2026-05-27 06:48:37 +00:00
GitHub Actions Bot
46ca04ff36 health log 2026-05-27 06:46:09 +00:00
GitHub Actions Bot
007ba7e6c1 update M3U8 2026-05-26 23:30:55 -04:00
GitHub Actions Bot
53079a6665 update M3U8 2026-05-26 23:00:27 -04:00
GitHub Actions Bot
7196753d81 update M3U8 2026-05-26 22:30:58 -04:00
GitHub Actions Bot
ad583f5fdc update M3U8 2026-05-26 22:00:28 -04:00
GitHub Actions Bot
b530c5980e update M3U8 2026-05-26 21:30:51 -04:00
GitHub Actions Bot
2921373ef1 update M3U8 2026-05-26 21:01:10 -04:00
GitHub Actions Bot
5dc73a9a98 update M3U8 2026-05-26 20:30:16 -04:00
GitHub Actions Bot
3ed7fa51d6 update M3U8 2026-05-26 20:00:53 -04:00
GitHub Actions Bot
8314907038 update M3U8 2026-05-26 19:32:15 -04:00
7 changed files with 125885 additions and 124216 deletions

File diff suppressed because it is too large Load diff

246906
M3U8/TV.xml

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -69,7 +69,7 @@ async def main() -> None:
asyncio.create_task(fawa.scrape()),
asyncio.create_task(istreameast.scrape()),
asyncio.create_task(mainportal.scrape()),
asyncio.create_task(ovogoal.scrape()),
# asyncio.create_task(ovogoal.scrape()),
asyncio.create_task(shark.scrape()),
asyncio.create_task(streamcenter.scrape()),
asyncio.create_task(streamsgate.scrape()),

View file

@ -1,7 +1,8 @@
import asyncio
from functools import partial
from urllib.parse import urljoin
from playwright.async_api import Browser
from playwright.async_api import Browser, Page
from .utils import Cache, Time, get_logger, leagues, network
@ -22,6 +23,67 @@ def fix_league(s: str) -> str:
return " ".join(x.capitalize() for x in s.split()) if len(s) > 5 else s.upper()
async def process_event(
url: str,
url_num: int,
page: Page,
) -> str | None:
captured: list[str] = []
got_one = asyncio.Event()
handler = partial(
network.capture_req,
captured=captured,
got_one=got_one,
)
page.on("request", handler)
try:
resp = await page.goto(
url,
wait_until="domcontentloaded",
timeout=6_000,
referer=BASE_URL,
)
if not resp or resp.status != 200:
log.warning(
f"URL {url_num}) Status Code: {resp.status if resp else 'None'}"
)
return
wait_task = asyncio.create_task(got_one.wait())
try:
await asyncio.wait_for(wait_task, timeout=6)
except asyncio.TimeoutError:
log.warning(f"URL {url_num}) Timed out waiting for M3U8.")
return
finally:
if not wait_task.done():
wait_task.cancel()
try:
await wait_task
except asyncio.CancelledError:
pass
if captured:
log.info(f"URL {url_num}) Captured M3U8")
return captured[0]
except Exception as e:
log.warning(f"URL {url_num}) {e}")
return
finally:
page.remove_listener("request", handler)
async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
now = Time.clean(Time.now())
@ -97,11 +159,10 @@ async def scrape(browser: Browser) -> None:
for i, ev in enumerate(events, start=1):
async with network.event_page(context) as page:
handler = partial(
network.process_event,
process_event,
url=(link := ev["link"]),
url_num=i,
page=page,
log=log,
)
url = await network.safe_process(

View file

@ -46,6 +46,7 @@ async def process_event(url: str, url_num: int) -> str | None:
return f"https://mainstreams.pro/hls/{iframe_src.rsplit("=", 1)[-1]}.m3u8"
# return f"https://edgestreams.pro/hls/{iframe_src.rsplit("=", 1)[-1]}.m3u8"
# return f"https://edge2caster.pro/hls/{iframe_src.rsplit("=", 1)[-1]}.m3u8"
async def get_events() -> list[dict[str, str]]:

View file

@ -1,16 +1,19 @@
## Base Log @ 2026-05-26 22:03 UTC
## Base Log @ 2026-05-27 22:17 UTC
### ✅ Working Streams: 150<br>❌ Dead Streams: 7
### ✅ Working Streams: 147<br>❌ Dead Streams: 10
| Channel | Error (Code) | Link |
| ------- | ------------ | ---- |
| Bounce TV | HTTP Error (404) | `http://23.237.104.106:8080/USA_BOUNCE/index.m3u8` |
| FDSN Detroit | HTTP Error (403) | `http://cdn1host.online:2999/live/bongus/35zqYxrbg0/317.ts` |
| FDSN North | HTTP Error (403) | `http://cdn1host.online:2999/live/bongus/35zqYxrbg0/320.ts` |
| FDSN Ohio | HTTP Error (403) | `http://cdn1host.online:2999/live/bongus/35zqYxrbg0/1207.ts` |
| FDSN SoCal | HTTP Error (403) | `http://cdn1host.online:2999/live/bongus/35zqYxrbg0/665.ts` |
| FDSN South | HTTP Error (403) | `http://cdn1host.online:2999/live/bongus/35zqYxrbg0/319.ts` |
| FDSN Southwest | HTTP Error (403) | `http://cdn1host.online:2999/live/bongus/35zqYxrbg0/1189.ts` |
| FDSN Sun | HTTP Error (403) | `http://cdn1host.online:2999/live/bongus/35zqYxrbg0/322.ts` |
| FDSN West | HTTP Error (403) | `http://cdn1host.online:2999/live/bongus/35zqYxrbg0/1633.ts` |
| FDSN Wisconsin | HTTP Error (403) | `http://cdn1host.online:2999/live/bongus/35zqYxrbg0/1621.ts` |
| Lifetime | HTTP Error (403) | `http://cdn1host.online:2999/live/bongus/35zqYxrbg0/148.ts` |
---
#### Base Channels URL
```