e
This commit is contained in:
parent
b53521360f
commit
00000d90bc
17 changed files with 6 additions and 8 deletions
2
.github/workflows/epg.yml
vendored
2
.github/workflows/epg.yml
vendored
|
|
@ -2,7 +2,7 @@ name: fetch epg
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 2,10,18 * * *"
|
- cron: "45 2,10,18 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
||||||
2
.github/workflows/health.yml
vendored
2
.github/workflows/health.yml
vendored
|
|
@ -2,7 +2,7 @@ name: health check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 2,8,14,20 * * *"
|
- cron: "30 2,8,14,20 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
||||||
2
.github/workflows/m3u8.yml
vendored
2
.github/workflows/m3u8.yml
vendored
|
|
@ -79,7 +79,7 @@ jobs:
|
||||||
uses: stefanzweifel/git-auto-commit-action@v6
|
uses: stefanzweifel/git-auto-commit-action@v6
|
||||||
with:
|
with:
|
||||||
commit_message: "update M3U8"
|
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_author: "GitHub Actions Bot <actions@github.com>"
|
||||||
commit_user_name: "GitHub Actions Bot"
|
commit_user_name: "GitHub Actions Bot"
|
||||||
commit_user_email: "actions@github.com"
|
commit_user_email: "actions@github.com"
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ import asyncio
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
from scrape import livetvsx, ppv, streambtw, tvpass
|
from scrapers import livetvsx, ppv, streambtw, tvpass
|
||||||
from scrape.utils import get_logger
|
from scrapers.utils import get_logger
|
||||||
|
|
||||||
log = get_logger(__name__)
|
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}')
|
log.error(f'Failed to fetch "{BASE_URL}"\n{e}')
|
||||||
raise SystemExit(e) from e
|
raise SystemExit(e) from e
|
||||||
|
|
||||||
d = r.text.splitlines()[1:]
|
|
||||||
|
|
||||||
last_chnl_num = int(r.text.split("tvg-chno=")[-1].split('"')[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:
|
async def main() -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue