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

@ -2,7 +2,7 @@ name: fetch epg
on:
schedule:
- cron: "30 2,10,18 * * *"
- cron: "45 2,10,18 * * *"
workflow_dispatch:
jobs:

View file

@ -2,7 +2,7 @@ name: health check
on:
schedule:
- cron: "0 2,8,14,20 * * *"
- cron: "30 2,8,14,20 * * *"
workflow_dispatch:
jobs:

View file

@ -79,7 +79,7 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v6
with:
commit_message: "update M3U8"
file_pattern: "M3U8/TV.m3u8 M3U8/scrape/caches/*.json"
file_pattern: "M3U8/TV.m3u8 M3U8/scrapers/caches/*.json"
commit_author: "GitHub Actions Bot <actions@github.com>"
commit_user_name: "GitHub Actions Bot"
commit_user_email: "actions@github.com"

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: