Compare commits

...

2 commits

Author SHA1 Message Date
GitHub Actions Bot
311f30f8a9 update M3U8 2025-11-30 19:00:45 -05:00
doms9
00000d9f51 e 2025-11-30 18:55:27 -05:00
4 changed files with 1112 additions and 967 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,4 @@
import base64
import re
from functools import partial
from urllib.parse import urljoin
@ -29,14 +30,13 @@ async def process_event(
log.error(f'URL {url_num}) Failed to fetch "{url}": {e}')
return
valid_m3u8 = re.compile(
r'var\s+(\w+)\s*=\s*["\']?(https?:\/\/[^"\'\s>]+\.m3u8(?:\?[^"\'\s>]*)?)["\']?',
re.IGNORECASE,
)
valid_m3u8 = re.compile(r'var\s+(\w+)\s*=\s*"([^"]*)"', re.IGNORECASE)
if match := valid_m3u8.search(r.text):
encoded = match[2][::-1]
decoded = base64.b64decode(encoded[::-1]).decode("utf-8")
log.info(f"URL {url_num}) Captured M3U8")
return match[2]
return decoded
log.info(f"URL {url_num}) No M3U8 found")

View file

@ -379,6 +379,7 @@
"names": [
"CAMPEONATO NACIONAL DE LIGA DE PRIMERA DIVISION",
"CAMPEONATO NACIONAL DE LIGA DE PRIMERA DIVISIÓN",
"LA-LIGA",
"LALIGA",
"PRIMERA DIVISION",
"PRIMERA DIVISIÓN",
@ -580,13 +581,13 @@
{
"SERIE A": {
"logo": "https://a.espncdn.com/combiner/i?img=/i/leaguelogos/soccer/500/12.png",
"names": ["ITALIAN SERIE A", "ITALY SERIE A"]
"names": ["ITALIAN SERIE A", "ITALY SERIE A", "SERIE-A"]
}
},
{
"SERIE B": {
"logo": "https://a.espncdn.com/combiner/i?img=/i/leaguelogos/soccer/500/99.png",
"names": ["ITALIAN SERIE B", "ITALY SERIE B"]
"names": ["ITALIAN SERIE B", "ITALY SERIE B", "SERIE-B"]
}
},
{