mirror of
https://github.com/doms9/iptv.git
synced 2026-03-10 11:47:34 +01:00
e
rename tvpass.py -> tvapp.py misc edits
This commit is contained in:
parent
edf6618aa8
commit
00000d9b17
3 changed files with 11 additions and 11 deletions
|
|
@ -165,19 +165,19 @@ async def get_events(cached_keys: list[str]) -> list[dict[str, str]]:
|
|||
|
||||
XML_CACHE.write(events)
|
||||
|
||||
live = []
|
||||
|
||||
start_ts = now.delta(hours=-1).timestamp()
|
||||
end_ts = now.delta(minutes=5).timestamp()
|
||||
|
||||
live = []
|
||||
|
||||
for k, v in events.items():
|
||||
if k in cached_keys:
|
||||
continue
|
||||
|
||||
if not (
|
||||
v["sport"] in VALID_SPORTS
|
||||
or v["league"] in VALID_SPORTS
|
||||
or v["event"].lower() == "olympic games"
|
||||
if (
|
||||
v["sport"] not in VALID_SPORTS
|
||||
and v["league"] not in VALID_SPORTS
|
||||
and v["event"].lower() != "olympic games"
|
||||
):
|
||||
continue
|
||||
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ log = get_logger(__name__)
|
|||
|
||||
urls: dict[str, dict[str, str | float]] = {}
|
||||
|
||||
TAG = "TVPASS"
|
||||
TAG = "TVAPP"
|
||||
|
||||
CACHE_FILE = Cache(TAG, exp=10_800)
|
||||
|
||||
HTML_CACHE = Cache(f"{TAG}-html", exp=28_800)
|
||||
HTML_CACHE = Cache(f"{TAG}-html", exp=19_800)
|
||||
|
||||
BASE_URL = "https://thetvapp.to"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue