mirror of
https://github.com/doms9/iptv.git
synced 2026-06-06 02:43:05 +02:00
update M3U8
This commit is contained in:
parent
146f7846c7
commit
bd4c419ce5
3 changed files with 1217 additions and 561 deletions
882
M3U8/TV.m3u8
882
M3U8/TV.m3u8
File diff suppressed because it is too large
Load diff
882
M3U8/events.m3u8
882
M3U8/events.m3u8
File diff suppressed because it is too large
Load diff
|
|
@ -8,13 +8,21 @@ TAG = "XYZSTRM"
|
||||||
|
|
||||||
CACHE_FILE = Cache(TAG, exp=28_800)
|
CACHE_FILE = Cache(TAG, exp=28_800)
|
||||||
|
|
||||||
|
BASE_URL = "https://xyzstreams.shop"
|
||||||
|
|
||||||
API_URL = "https://blog.xyzstreams.shop:2053/api/scoreboard"
|
API_URL = "https://blog.xyzstreams.shop:2053/api/scoreboard"
|
||||||
|
|
||||||
|
|
||||||
async def get_events() -> dict[str, dict[str, str | float]]:
|
async def get_events() -> dict[str, dict[str, str | float]]:
|
||||||
events = {}
|
events = {}
|
||||||
|
|
||||||
if not (r := await network.request(API_URL, log=log)):
|
if not (
|
||||||
|
r := await network.request(
|
||||||
|
API_URL,
|
||||||
|
headers={"Referer": BASE_URL},
|
||||||
|
log=log,
|
||||||
|
)
|
||||||
|
):
|
||||||
return events
|
return events
|
||||||
|
|
||||||
now = Time.clean(Time.now())
|
now = Time.clean(Time.now())
|
||||||
|
|
@ -49,7 +57,7 @@ async def get_events() -> dict[str, dict[str, str | float]]:
|
||||||
events[key] = {
|
events[key] = {
|
||||||
"url": feed,
|
"url": feed,
|
||||||
"logo": logo,
|
"logo": logo,
|
||||||
"base": "https://xyzstreams.shop",
|
"base": BASE_URL,
|
||||||
"timestamp": now.timestamp(),
|
"timestamp": now.timestamp(),
|
||||||
"id": tvg_id or "Live.Event.us",
|
"id": tvg_id or "Live.Event.us",
|
||||||
}
|
}
|
||||||
|
|
@ -65,7 +73,7 @@ async def scrape() -> None:
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
log.info('Scraping from "https://xyzstreams.shop"')
|
log.info(f'Scraping from "{BASE_URL}"')
|
||||||
|
|
||||||
urls.update(await get_events() or {})
|
urls.update(await get_events() or {})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue