mirror of
https://github.com/doms9/iptv.git
synced 2026-04-21 19:46:59 +02:00
Compare commits
35 commits
8c544f3a6d
...
c901ed52e8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c901ed52e8 | ||
|
|
4bf9b9dc3b | ||
|
|
63c3a81edd | ||
|
|
b388d178f3 | ||
|
|
bba96ff8e9 | ||
|
|
9bd995ee00 | ||
|
|
459a92d414 | ||
|
|
15f4640929 | ||
|
|
9dd220558a | ||
|
|
d12e50ac1b | ||
|
|
b28693b2b6 | ||
|
|
234bb4c140 | ||
|
|
e03781a23c | ||
|
|
c6b580895d | ||
|
|
25aaa46d13 | ||
|
|
535ad23745 | ||
|
|
103f39f21b | ||
|
|
b465ff0fba | ||
|
|
ea1e6c0fdb | ||
|
|
f959b79f92 | ||
|
|
e616b56994 | ||
|
|
ec1a34a3c5 | ||
|
|
b1580bcfe2 | ||
|
|
06e2e34cfb | ||
|
|
6eae2553f9 | ||
|
|
9fbccc5f46 | ||
|
|
aa4fc1d744 | ||
|
|
c3978ca189 | ||
|
|
00000d9379 | ||
|
|
7e924aa3a9 | ||
|
|
b0a574637a | ||
|
|
26ef6b9b5c | ||
|
|
39774d0e65 | ||
|
|
067419591b | ||
|
|
f9d1f11d0f |
8 changed files with 47629 additions and 47130 deletions
3786
M3U8/TV.m3u8
3786
M3U8/TV.m3u8
File diff suppressed because it is too large
Load diff
87138
M3U8/TV.xml
87138
M3U8/TV.xml
File diff suppressed because one or more lines are too long
|
|
@ -43,7 +43,7 @@ http://212.102.60.231/BET/index.m3u8
|
||||||
http://23.237.104.106:8080/USA_BTN/index.m3u8
|
http://23.237.104.106:8080/USA_BTN/index.m3u8
|
||||||
|
|
||||||
#EXTINF:-1 tvg-chno="15" tvg-id="Bloomberg.HD.us2" tvg-name="Bloomberg TV" tvg-logo="http://schedulesdirect-api20141201-logos.s3.dualstack.us-east-1.amazonaws.com/stationLogos/s71799_dark_360w_270h.png" group-title="TV",Bloomberg TV
|
#EXTINF:-1 tvg-chno="15" tvg-id="Bloomberg.HD.us2" tvg-name="Bloomberg TV" tvg-logo="http://schedulesdirect-api20141201-logos.s3.dualstack.us-east-1.amazonaws.com/stationLogos/s71799_dark_360w_270h.png" group-title="TV",Bloomberg TV
|
||||||
http://41.205.93.154/BLOOMBERG/index.m3u8
|
https://live-manifest.production-public.tubi.io/live/a5aabf5a-9615-4987-8163-18edfa1360c6/playlist.m3u8
|
||||||
|
|
||||||
#EXTINF:-1 tvg-chno="16" tvg-id="Boomerang.us2" tvg-name="Boomerang" tvg-logo="http://schedulesdirect-api20141201-logos.s3.dualstack.us-east-1.amazonaws.com/stationLogos/s21883_dark_360w_270h.png" group-title="TV",Boomerang
|
#EXTINF:-1 tvg-chno="16" tvg-id="Boomerang.us2" tvg-name="Boomerang" tvg-logo="http://schedulesdirect-api20141201-logos.s3.dualstack.us-east-1.amazonaws.com/stationLogos/s21883_dark_360w_270h.png" group-title="TV",Boomerang
|
||||||
http://23.237.104.106:8080/USA_BOOMERANG/index.m3u8
|
http://23.237.104.106:8080/USA_BOOMERANG/index.m3u8
|
||||||
|
|
|
||||||
3784
M3U8/events.m3u8
3784
M3U8/events.m3u8
File diff suppressed because it is too large
Load diff
|
|
@ -72,7 +72,7 @@ async def main() -> None:
|
||||||
asyncio.create_task(roxie.scrape(hdl_brwsr)),
|
asyncio.create_task(roxie.scrape(hdl_brwsr)),
|
||||||
asyncio.create_task(sportzone.scrape(xtrnl_brwsr)),
|
asyncio.create_task(sportzone.scrape(xtrnl_brwsr)),
|
||||||
asyncio.create_task(streamcenter.scrape(hdl_brwsr)),
|
asyncio.create_task(streamcenter.scrape(hdl_brwsr)),
|
||||||
# asyncio.create_task(streamhub.scrape(xtrnl_brwsr)),
|
asyncio.create_task(streamhub.scrape(xtrnl_brwsr)),
|
||||||
asyncio.create_task(streamsgate.scrape(xtrnl_brwsr)),
|
asyncio.create_task(streamsgate.scrape(xtrnl_brwsr)),
|
||||||
# asyncio.create_task(timstreams.scrape(xtrnl_brwsr)),
|
# asyncio.create_task(timstreams.scrape(xtrnl_brwsr)),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -17,19 +17,19 @@ CACHE_FILE = Cache(TAG, exp=10_800)
|
||||||
|
|
||||||
HTML_CACHE = Cache(f"{TAG}-html", exp=19_800)
|
HTML_CACHE = Cache(f"{TAG}-html", exp=19_800)
|
||||||
|
|
||||||
BASE_URL = "https://livesports4u.net"
|
BASE_URL = "https://streamhub.pro"
|
||||||
|
|
||||||
SPORT_ENDPOINTS = [
|
SPORT_ENDPOINTS = [
|
||||||
f"sport_{sport_id}"
|
f"sport_{sport_id}"
|
||||||
for sport_id in [
|
for sport_id in [
|
||||||
# "68c02a4465113", # American Football
|
# "68c02a4465113", # American Football
|
||||||
"68c02a446582f", # Baseball
|
# "68c02a446582f", # Baseball
|
||||||
"68c02a4466011", # Basketball
|
"68c02a4466011", # Basketball
|
||||||
"68c02a4466f56", # Hockey
|
"68c02a4466f56", # Hockey
|
||||||
"68c02a44674e9", # MMA
|
# "68c02a44674e9", # MMA
|
||||||
"68c02a4467a48", # Racing
|
# "68c02a4467a48", # Racing
|
||||||
"68c02a4464a38", # Soccer
|
"68c02a4464a38", # Soccer
|
||||||
"68c02a4468cf7", # Tennis
|
# "68c02a4468cf7", # Tennis
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -107,7 +107,7 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
||||||
now.timestamp(),
|
now.timestamp(),
|
||||||
)
|
)
|
||||||
for date in [now.date(), now.delta(days=1).date()]
|
for date in [now.date(), now.delta(days=1).date()]
|
||||||
for sport_id in SPORT_ENDPOINTS.values()
|
for sport_id in SPORT_ENDPOINTS
|
||||||
]
|
]
|
||||||
|
|
||||||
results = await asyncio.gather(*tasks)
|
results = await asyncio.gather(*tasks)
|
||||||
|
|
@ -193,6 +193,8 @@ async def scrape(browser: Browser) -> None:
|
||||||
if url:
|
if url:
|
||||||
valid_count += 1
|
valid_count += 1
|
||||||
|
|
||||||
|
entry["url"] = url.split("?")[0]
|
||||||
|
|
||||||
urls[key] = entry
|
urls[key] = entry
|
||||||
|
|
||||||
log.info(f"Collected and cached {valid_count - cached_count} new event(s)")
|
log.info(f"Collected and cached {valid_count - cached_count} new event(s)")
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,9 @@ CACHE_FILE = Cache(TAG, exp=10_800)
|
||||||
|
|
||||||
API_FILE = Cache(f"{TAG}-api", exp=19_800)
|
API_FILE = Cache(f"{TAG}-api", exp=19_800)
|
||||||
|
|
||||||
API_URL = "https://api.watchfooty.st"
|
BASE_DOMAIN = "watchfooty.pw"
|
||||||
|
|
||||||
BASE_MIRRORS = [
|
API_URL, BASE_URL = f"https://api.{BASE_DOMAIN}", f"https://www.{BASE_DOMAIN}"
|
||||||
"https://www.watchfooty.top",
|
|
||||||
"https://www.watchfooty.st",
|
|
||||||
"https://www.watchfooty.su",
|
|
||||||
]
|
|
||||||
|
|
||||||
VALID_SPORTS = [
|
VALID_SPORTS = [
|
||||||
# "american-football",
|
# "american-football",
|
||||||
|
|
@ -123,7 +119,7 @@ async def process_event(
|
||||||
|
|
||||||
embed = re.sub(
|
embed = re.sub(
|
||||||
pattern=r"^.*\/stream",
|
pattern=r"^.*\/stream",
|
||||||
repl="https://spiderembed.top/embed",
|
repl="https://pikachusports.top/embed",
|
||||||
string=stream_url,
|
string=stream_url,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -169,7 +165,7 @@ async def process_event(
|
||||||
page.remove_listener("request", handler)
|
page.remove_listener("request", handler)
|
||||||
|
|
||||||
|
|
||||||
async def get_events(base_url: str, cached_keys: list[str]) -> list[dict[str, str]]:
|
async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
||||||
now = Time.clean(Time.now())
|
now = Time.clean(Time.now())
|
||||||
|
|
||||||
if not (api_data := API_FILE.load(per_entry=False, index=-1)):
|
if not (api_data := API_FILE.load(per_entry=False, index=-1)):
|
||||||
|
|
@ -218,7 +214,7 @@ async def get_events(base_url: str, cached_keys: list[str]) -> list[dict[str, st
|
||||||
{
|
{
|
||||||
"sport": sport,
|
"sport": sport,
|
||||||
"event": name,
|
"event": name,
|
||||||
"link": urljoin(base_url, f"stream/{match_id}"),
|
"link": urljoin(BASE_URL, f"stream/{match_id}"),
|
||||||
"match-id": match_id,
|
"match-id": match_id,
|
||||||
"logo": logo,
|
"logo": logo,
|
||||||
"timestamp": event_dt.timestamp(),
|
"timestamp": event_dt.timestamp(),
|
||||||
|
|
@ -239,16 +235,9 @@ async def scrape(browser: Browser) -> None:
|
||||||
|
|
||||||
log.info(f"Loaded {cached_count} event(s) from cache")
|
log.info(f"Loaded {cached_count} event(s) from cache")
|
||||||
|
|
||||||
if not (base_url := await network.get_base(BASE_MIRRORS)):
|
log.info(f'Scraping from "{BASE_URL}"')
|
||||||
log.warning("No working Watch Footy mirrors")
|
|
||||||
|
|
||||||
CACHE_FILE.write(cached_urls)
|
if events := await get_events(cached_urls.keys()):
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
log.info(f'Scraping from "{base_url}"')
|
|
||||||
|
|
||||||
if events := await get_events(base_url, cached_urls.keys()):
|
|
||||||
log.info(f"Processing {len(events)} new URL(s)")
|
log.info(f"Processing {len(events)} new URL(s)")
|
||||||
|
|
||||||
async with network.event_context(browser, stealth=False) as context:
|
async with network.event_context(browser, stealth=False) as context:
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
## Base Log @ 2026-03-07 08:53 UTC
|
## Base Log @ 2026-03-08 08:53 UTC
|
||||||
|
|
||||||
### ✅ Working Streams: 158<br>❌ Dead Streams: 3
|
### ✅ Working Streams: 158<br>❌ Dead Streams: 3
|
||||||
|
|
||||||
| Channel | Error (Code) | Link |
|
| Channel | Error (Code) | Link |
|
||||||
| ------- | ------------ | ---- |
|
| ------- | ------------ | ---- |
|
||||||
| Bloomberg TV | HTTP Error (404) | `http://41.205.93.154/BLOOMBERG/index.m3u8` |
|
| MSNBC | HTTP Error (404) | `http://41.205.93.154/MSNBC/index.m3u8` |
|
||||||
| Discovery Science | HTTP Error (403) | `http://mytvstream.net:8080/live/30550113/30550113/20866.m3u8` |
|
| NBC Sports Bay Area | HTTP Error (403) | `http://mytvstream.net:8080/live/30550113/30550113/9900.m3u8` |
|
||||||
| Showtime Extreme | HTTP Error (403) | `http://mytvstream.net:8080/live/30550113/30550113/13220.m3u8` |
|
| Spectrum SportsNet Lakers | HTTP Error (403) | `http://mytvstream.net:8080/live/30550113/30550113/21842.m3u8` |
|
||||||
---
|
---
|
||||||
#### Base Channels URL
|
#### Base Channels URL
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue