mirror of
https://github.com/doms9/iptv.git
synced 2026-04-21 19:46:59 +02:00
Compare commits
34 commits
eadd60d126
...
dec16dd888
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dec16dd888 | ||
|
|
4c32956b2b | ||
|
|
00000d9c93 | ||
|
|
b8c07f8eec | ||
|
|
03ca4bd1b0 | ||
|
|
3e3698ab55 | ||
|
|
131efa2db9 | ||
|
|
7ab01c3a07 | ||
|
|
65c3b26983 | ||
|
|
2d805bee09 | ||
|
|
84dcc8775b | ||
|
|
b77ca72df2 | ||
|
|
5abb740cfd | ||
|
|
ae997ac134 | ||
|
|
93315a850f | ||
|
|
4eb9c0390b | ||
|
|
263bfff511 | ||
|
|
9dc1b2f4ee | ||
|
|
8624361d47 | ||
|
|
34f3097c78 | ||
|
|
7575e28264 | ||
|
|
1df553dea7 | ||
|
|
c910f96f11 | ||
|
|
606b899d04 | ||
|
|
dc08133087 | ||
|
|
c93bb01356 | ||
|
|
355ecb5eba | ||
|
|
1be1024053 | ||
|
|
cfeebc1b15 | ||
|
|
cf527f69ad | ||
|
|
1711827a9c | ||
|
|
05d50216ad | ||
|
|
09ad37093a | ||
|
|
2af94bed13 |
7 changed files with 131698 additions and 128733 deletions
2078
M3U8/TV.m3u8
2078
M3U8/TV.m3u8
File diff suppressed because it is too large
Load diff
256243
M3U8/TV.xml
256243
M3U8/TV.xml
File diff suppressed because one or more lines are too long
2078
M3U8/events.m3u8
2078
M3U8/events.m3u8
File diff suppressed because it is too large
Load diff
|
|
@ -141,12 +141,10 @@ async def main() -> None:
|
|||
f'tvg-name="{event}" tvg-logo="{info["logo"]}" group-title="Live Events",{event}'
|
||||
)
|
||||
|
||||
UA = info.get("UA", network.UA)
|
||||
|
||||
vlc_block = [
|
||||
f'#EXTVLCOPT:http-referrer={info["base"]}',
|
||||
f'#EXTVLCOPT:http-origin={info["base"]}',
|
||||
f"#EXTVLCOPT:http-user-agent={UA}",
|
||||
f"#EXTVLCOPT:http-user-agent={info.get('UA', network.UA)}",
|
||||
info["url"],
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -105,6 +105,13 @@ async def process_event(
|
|||
return
|
||||
|
||||
try:
|
||||
if btn := page.locator("button.streambutton").first:
|
||||
await btn.click(
|
||||
force=True,
|
||||
click_count=2,
|
||||
timeout=3_000,
|
||||
)
|
||||
|
||||
await page.wait_for_function(
|
||||
"() => typeof clapprPlayer !== 'undefined'",
|
||||
timeout=6_000,
|
||||
|
|
|
|||
|
|
@ -18,15 +18,15 @@ API_CACHE = Cache(f"{TAG}-api", exp=28_800)
|
|||
|
||||
API_URL = "https://s2watch.me/api/v1/schedule/list"
|
||||
|
||||
EVENT_BASE = "https://gopst.link"
|
||||
BASE_URL = "https://gopst.link"
|
||||
|
||||
|
||||
async def process_event(event_id: int, url_num: int) -> tuple[str | None, str | None]:
|
||||
nones = None, None
|
||||
|
||||
if not (
|
||||
event_api_src := await network.request(
|
||||
urljoin(EVENT_BASE, "api/player.php"),
|
||||
base_api_src := await network.request(
|
||||
urljoin(BASE_URL, "api/player.php"),
|
||||
params={"id": event_id},
|
||||
log=log,
|
||||
)
|
||||
|
|
@ -34,7 +34,7 @@ async def process_event(event_id: int, url_num: int) -> tuple[str | None, str |
|
|||
log.warning(f"URL {url_num}) Failed to get iframe url.")
|
||||
return nones
|
||||
|
||||
if not (embed_url := event_api_src.json().get("url")):
|
||||
if not (embed_url := base_api_src.json().get("url")):
|
||||
log.warning(f"URL {url_num}) No iframe url available.")
|
||||
return nones
|
||||
|
||||
|
|
@ -44,11 +44,11 @@ async def process_event(event_id: int, url_num: int) -> tuple[str | None, str |
|
|||
log=log,
|
||||
headers={
|
||||
"User-Agent": "curl/8.19.0",
|
||||
"Referer": f"{event_api_src.url}",
|
||||
"Referer": f"{base_api_src.url}",
|
||||
},
|
||||
)
|
||||
):
|
||||
log.warning(f"URL {url_num}) Failed to get load iframe url.")
|
||||
log.warning(f"URL {url_num}) Failed to load iframe url.")
|
||||
return nones
|
||||
|
||||
pattern = re.compile(r'var\s+src\s+=\s+"([^"]*)"', re.I)
|
||||
|
|
@ -162,7 +162,7 @@ async def scrape() -> None:
|
|||
"base": iframe,
|
||||
"timestamp": ts,
|
||||
"id": tvg_id or "Live.Event.us",
|
||||
"link": urljoin(EVENT_BASE, f"ch?id={event_id}"),
|
||||
"link": urljoin(BASE_URL, f"ch?id={event_id}"),
|
||||
"UA": "curl/8.19.0",
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,13 @@
|
|||
## Base Log @ 2026-03-21 08:55 UTC
|
||||
## Base Log @ 2026-03-22 08:57 UTC
|
||||
|
||||
### ✅ Working Streams: 157<br>❌ Dead Streams: 5
|
||||
### ✅ Working Streams: 158<br>❌ Dead Streams: 4
|
||||
|
||||
| Channel | Error (Code) | Link |
|
||||
| ------- | ------------ | ---- |
|
||||
| Altitude Sports | HTTP Error (403) | `http://mytvstream.net:8080/live/30550113/30550113/79545.m3u8` |
|
||||
| FDSN Midwest | HTTP Error (000) | `http://mytvstream.net:8080/live/30550113/30550113/66795.m3u8` |
|
||||
| Hallmark Family | HTTP Error (403) | `http://mytvstream.net:8080/live/30550113/30550113/9307.m3u8` |
|
||||
| NBC Sports California | HTTP Error (403) | `http://mytvstream.net:8080/live/30550113/30550113/20940.m3u8` |
|
||||
| NHL Network | HTTP Error (000) | `http://mytvstream.net:8080/live/30550113/30550113/20179.m3u8` |
|
||||
| Pop TV | HTTP Error (403) | `http://mytvstream.net:8080/live/30550113/30550113/20976.m3u8` |
|
||||
---
|
||||
#### Base Channels URL
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue