mirror of
https://github.com/doms9/iptv.git
synced 2026-03-07 11:18:25 +01:00
Compare commits
37 commits
5cbfb6888e
...
00000d9f2b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00000d9f2b | ||
|
|
1608018249 | ||
|
|
c7ce7d1d0b | ||
|
|
70f6f05a41 | ||
|
|
60a664ff54 | ||
|
|
4b20baf51d | ||
|
|
a6ccdd0e86 | ||
|
|
cfb13a8fed | ||
|
|
d73db17768 | ||
|
|
1324373b0f | ||
|
|
771998845a | ||
|
|
d31c585b58 | ||
|
|
bbda14ee0e | ||
|
|
65765b750c | ||
|
|
3d79cbe99b | ||
|
|
7c893423ed | ||
|
|
2bee8e3d81 | ||
|
|
26907a0204 | ||
|
|
3c5562344b | ||
|
|
39d375f0aa | ||
|
|
0f8690b41f | ||
|
|
3d7209c665 | ||
|
|
00000d987c | ||
|
|
00000d9f85 | ||
|
|
443b8465d4 | ||
|
|
c19db9fa65 | ||
|
|
3d998b68b4 | ||
|
|
95ebed3f79 | ||
|
|
1ad0f87e23 | ||
|
|
03da1caee4 | ||
|
|
afa3fbaac6 | ||
|
|
86a7414021 | ||
|
|
9360e8fca4 | ||
|
|
2ad46d0cb3 | ||
|
|
4928702706 | ||
|
|
dad53aa921 | ||
|
|
1d4c3200ff |
14 changed files with 108934 additions and 109571 deletions
1438
M3U8/TV.m3u8
1438
M3U8/TV.m3u8
File diff suppressed because it is too large
Load diff
215512
M3U8/TV.xml
215512
M3U8/TV.xml
File diff suppressed because one or more lines are too long
1438
M3U8/events.m3u8
1438
M3U8/events.m3u8
File diff suppressed because it is too large
Load diff
|
|
@ -72,7 +72,7 @@ async def main() -> None:
|
|||
asyncio.create_task(streamsgate.scrape(xtrnl_brwsr)),
|
||||
asyncio.create_task(totalsportek.scrape(hdl_brwsr)),
|
||||
asyncio.create_task(tvpass.scrape(hdl_brwsr)),
|
||||
asyncio.create_task(webcast.scrape(hdl_brwsr)),
|
||||
# asyncio.create_task(webcast.scrape(hdl_brwsr)),
|
||||
]
|
||||
|
||||
httpx_tasks = [
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ SPORT_ENDPOINTS = {
|
|||
# "mlb": "MLB",
|
||||
"motorsports": "Racing",
|
||||
"nba": "NBA",
|
||||
"nfl": "American Football",
|
||||
# "nfl": "American Football",
|
||||
"nhl": "NHL",
|
||||
"soccer": "Soccer",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
import base64
|
||||
import json
|
||||
import re
|
||||
from functools import partial
|
||||
|
||||
from selectolax.parser import HTMLParser
|
||||
from urllib.parse import urljoin
|
||||
|
||||
from .utils import Cache, Time, get_logger, leagues, network
|
||||
|
||||
|
|
@ -15,6 +13,8 @@ TAG = "STRMBTW"
|
|||
|
||||
CACHE_FILE = Cache(TAG, exp=3_600)
|
||||
|
||||
API_FILE = Cache(f"{TAG}-api", exp=28_800)
|
||||
|
||||
BASE_URL = "https://hiteasport.info"
|
||||
|
||||
|
||||
|
|
@ -32,7 +32,6 @@ async def process_event(url: str, url_num: int) -> str | None:
|
|||
|
||||
if not (match := valid_m3u8.search(html_data.text)):
|
||||
log.info(f"URL {url_num}) No M3U8 found")
|
||||
|
||||
return
|
||||
|
||||
stream_link: str = match[2]
|
||||
|
|
@ -46,56 +45,49 @@ async def process_event(url: str, url_num: int) -> str | None:
|
|||
|
||||
|
||||
async def get_events() -> list[dict[str, str]]:
|
||||
now = Time.clean(Time.now())
|
||||
|
||||
if not (api_data := API_FILE.load(per_entry=False)):
|
||||
log.info("Refreshing API cache")
|
||||
|
||||
api_data = {"timestamp": now.timestamp()}
|
||||
|
||||
if r := await network.request(
|
||||
urljoin(BASE_URL, "public/api.php"),
|
||||
log=log,
|
||||
params={"action": "get"},
|
||||
):
|
||||
api_data: dict = r.json()
|
||||
|
||||
api_data["timestamp"] = now.timestamp()
|
||||
|
||||
API_FILE.write(api_data)
|
||||
|
||||
events = []
|
||||
|
||||
if not (html_data := await network.request(BASE_URL, log=log)):
|
||||
return events
|
||||
if last_update := api_data.get("updated_at"):
|
||||
last_update_dt = Time.from_str(last_update, timezone="UTC")
|
||||
|
||||
soup = HTMLParser(html_data.content)
|
||||
if last_update_dt.date() != now.date():
|
||||
return events
|
||||
|
||||
script_text = None
|
||||
for info in api_data.get("groups", []):
|
||||
if not (sport := info["title"]):
|
||||
sport = "Live Event"
|
||||
|
||||
for s in soup.css("script"):
|
||||
t = s.text() or ""
|
||||
if items := info.get("items"):
|
||||
for event in items:
|
||||
event_name: str = event["title"]
|
||||
|
||||
if "const DATA" in t:
|
||||
script_text = t
|
||||
break
|
||||
link: str = event["url"]
|
||||
|
||||
if not script_text:
|
||||
return events
|
||||
|
||||
if not (
|
||||
match := re.search(r"const\s+DATA\s*=\s*(\[\s*.*?\s*\]);", script_text, re.S)
|
||||
):
|
||||
return events
|
||||
|
||||
data_js = match[1].replace("\n ", "").replace("\n ", "")
|
||||
s1 = re.sub(r"{\s", '{"', data_js)
|
||||
s2 = re.sub(r':"', '":"', s1)
|
||||
s3 = re.sub(r":\[", '":[', s2)
|
||||
s4 = re.sub(r"},\]", "}]", s3)
|
||||
s5 = re.sub(r'",\s', '","', s4)
|
||||
|
||||
data: list[dict[str, str]] = json.loads(s5)
|
||||
|
||||
for matches in data:
|
||||
league = matches["title"]
|
||||
|
||||
items: list[dict[str, str]] = matches["items"]
|
||||
|
||||
for info in items:
|
||||
title = info["title"]
|
||||
|
||||
url = info["url"]
|
||||
|
||||
events.append(
|
||||
{
|
||||
"sport": fix_league(league),
|
||||
"event": title,
|
||||
"link": url,
|
||||
}
|
||||
)
|
||||
events.append(
|
||||
{
|
||||
"sport": fix_league(sport),
|
||||
"event": event_name,
|
||||
"link": link,
|
||||
}
|
||||
)
|
||||
|
||||
return events
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ BASE_URL = "https://backend.streamcenter.live/api/Parties"
|
|||
CATEGORIES = {
|
||||
4: "Basketball",
|
||||
9: "Football",
|
||||
13: "Baseball",
|
||||
14: "American Football",
|
||||
# 13: "Baseball",
|
||||
# 14: "American Football",
|
||||
15: "Motor Sport",
|
||||
16: "Hockey",
|
||||
17: "Fight MMA",
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ BASE_URL = "https://streamhub.pro/"
|
|||
|
||||
CATEGORIES = {
|
||||
"Soccer": "sport_68c02a4464a38",
|
||||
"American Football": "sport_68c02a4465113",
|
||||
# "American Football": "sport_68c02a4465113",
|
||||
# "Baseball": "sport_68c02a446582f",
|
||||
"Basketball": "sport_68c02a4466011",
|
||||
"Cricket": "sport_68c02a44669f3",
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ BASE_URL = "https://streamingon.org"
|
|||
|
||||
SPORT_ENDPOINTS = [
|
||||
"soccer",
|
||||
"nfl",
|
||||
# "nfl",
|
||||
"nba",
|
||||
"cfb",
|
||||
"mlb",
|
||||
# "mlb",
|
||||
"nhl",
|
||||
"ufc",
|
||||
"boxing",
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ class Time(datetime):
|
|||
"%Y-%m-%d %H:%M %p",
|
||||
"%Y-%m-%dT%H:%M:%S",
|
||||
"%Y-%m-%dT%H:%M:%SZ",
|
||||
"%Y-%m-%dT%H:%M:%S%z",
|
||||
"%Y-%m-%dT%H:%M:%S.%fZ",
|
||||
"%Y/%m/%d %H:%M",
|
||||
"%Y/%m/%d %H:%M:%S",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ BASE_MIRRORS = [
|
|||
]
|
||||
|
||||
VALID_SPORTS = [
|
||||
"american-football",
|
||||
# "american-football",
|
||||
# "australian-football",
|
||||
# "baseball",
|
||||
"basketball",
|
||||
|
|
|
|||
|
|
@ -16,7 +16,10 @@ CACHE_FILE = Cache(TAG, exp=10_800)
|
|||
|
||||
HTML_CACHE = Cache(f"{TAG}-html", exp=86_400)
|
||||
|
||||
BASE_URLS = {"NFL": "https://nflwebcast.com", "NHL": "https://slapstreams.com"}
|
||||
BASE_URLS = {
|
||||
# "NFL": "https://nflwebcast.com",
|
||||
"NHL": "https://slapstreams.com",
|
||||
}
|
||||
|
||||
|
||||
def fix_event(s: str) -> str:
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ SPORT_ENDPOINTS = [
|
|||
# "mlb",
|
||||
"mma",
|
||||
"nba",
|
||||
"nfl",
|
||||
# "nfl",
|
||||
"nhl",
|
||||
"soccer",
|
||||
"wwe",
|
||||
|
|
|
|||
|
|
@ -1,16 +1,13 @@
|
|||
## Base Log @ 2026-02-08 04:41 UTC
|
||||
## Base Log @ 2026-02-09 04:37 UTC
|
||||
|
||||
### ✅ Working Streams: 139<br>❌ Dead Streams: 7
|
||||
### ✅ Working Streams: 142<br>❌ Dead Streams: 4
|
||||
|
||||
| Channel | Error (Code) | Link |
|
||||
| ------- | ------------ | ---- |
|
||||
| CW | HTTP Error (404) | `https://fl1.moveonjoy.com/CW_ORLANDO/index.m3u8` |
|
||||
| ESPN | HTTP Error (404) | `http://41.205.93.154/ESPN/index.m3u8` |
|
||||
| FXX | HTTP Error (404) | `https://fl1.moveonjoy.com/FXX/index.m3u8` |
|
||||
| Spectrum SportsNet LA Dodgers | HTTP Error (403) | `http://mytvstream.net:8080/live/bn80NG/909467/31636.m3u8` |
|
||||
| Sportsnet 360 | HTTP Error (403) | `http://mytvstream.net:8080/live/bn80NG/909467/2219.m3u8` |
|
||||
| Sportsnet One | HTTP Error (403) | `http://mytvstream.net:8080/live/bn80NG/909467/57297.m3u8` |
|
||||
| TSN1 | HTTP Error (403) | `http://mytvstream.net:8080/live/bn80NG/909467/57292.m3u8` |
|
||||
---
|
||||
#### Base Channels URL
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue