mirror of
https://github.com/doms9/iptv.git
synced 2026-06-06 02:43:05 +02:00
e
- misc edits.
This commit is contained in:
parent
c8ed911944
commit
00000d9c84
5 changed files with 10 additions and 5 deletions
|
|
@ -124,7 +124,7 @@ async def scrape(browser: Browser) -> None:
|
|||
entry = {
|
||||
"url": url,
|
||||
"logo": logo,
|
||||
"base": "https://exposestrat.com/",
|
||||
"base": "https://hoca6.com/",
|
||||
"timestamp": ts,
|
||||
"id": tvg_id or "Live.Event.us",
|
||||
"link": link,
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ async def scrape(browser: Browser) -> None:
|
|||
entry = {
|
||||
"url": url,
|
||||
"logo": logo,
|
||||
"base": "https://exposestrat.com/",
|
||||
"base": "https://hoca6.com/",
|
||||
"timestamp": now.timestamp(),
|
||||
"id": tvg_id or "Live.Event.us",
|
||||
"link": link,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ urls: dict[str, dict[str, str | float]] = {}
|
|||
|
||||
TAG = "STRMCNTR"
|
||||
|
||||
CACHE_FILE = Cache(TAG, exp=28_800)
|
||||
CACHE_FILE = Cache(TAG, exp=86_400)
|
||||
|
||||
API_URL = "https://backend.streamcenter.live/api/Parties"
|
||||
|
||||
|
|
|
|||
|
|
@ -97,9 +97,14 @@ async def process_event(
|
|||
pass
|
||||
|
||||
if captured:
|
||||
if "smarthard.click" not in (m3u8 := captured[0]).lower():
|
||||
log.warning(f"URL {url_num}) Invalid M3U8 found.")
|
||||
|
||||
return
|
||||
|
||||
log.info(f"URL {url_num}) Captured M3U8")
|
||||
|
||||
return captured[0]
|
||||
return m3u8
|
||||
|
||||
log.warning(f"URL {url_num}) No M3U8 captured after waiting.")
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ urls: dict[str, dict[str, str | float]] = {}
|
|||
|
||||
TAG = "STRMSGATE"
|
||||
|
||||
CACHE_FILE = Cache(TAG, exp=28_800)
|
||||
CACHE_FILE = Cache(TAG, exp=19_800)
|
||||
|
||||
BASE_URL = "https://streamsgates.io"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue