This commit is contained in:
doms9 2025-09-08 11:49:52 -04:00
parent b53521360f
commit 00000d90bc
17 changed files with 6 additions and 8 deletions

View file

@ -3,8 +3,8 @@ import asyncio
from pathlib import Path
import httpx
from scrape import livetvsx, ppv, streambtw, tvpass
from scrape.utils import get_logger
from scrapers import livetvsx, ppv, streambtw, tvpass
from scrapers.utils import get_logger
log = get_logger(__name__)
@ -31,11 +31,9 @@ async def vanilla_fetch() -> tuple[list[str], int]:
log.error(f'Failed to fetch "{BASE_URL}"\n{e}')
raise SystemExit(e) from e
d = r.text.splitlines()[1:]
last_chnl_num = int(r.text.split("tvg-chno=")[-1].split('"')[1])
return d, last_chnl_num
return r.text.splitlines()[1:], last_chnl_num
async def main() -> None: