This commit is contained in:
doms9 2025-10-29 19:08:30 -04:00
parent 48e650837b
commit 00000d9fb7

View file

@ -12,9 +12,9 @@ log = get_logger(__name__)
urls: dict[str, dict[str, str]] = {} urls: dict[str, dict[str, str]] = {}
BASE_URL = "https://streambtw.com/" BASE_URL = "https://streambtw.com"
CACHE_FILE = Cache(Path(__file__).parent / "caches" / "streambtw.json", exp=28_800) CACHE_FILE = Cache(Path(__file__).parent / "caches" / "streambtw.json", exp=3_600)
async def process_event( async def process_event(
@ -31,7 +31,7 @@ async def process_event(
return return
valid_m3u8 = re.compile( valid_m3u8 = re.compile(
r'var\s+(\w+)\s*=\s*["\']?(https?:\/\/[^"\'\s>]+\.m3u8)["\']?', r'var\s+(\w+)\s*=\s*["\']?(https?:\/\/[^"\'\s>]+\.m3u8(?:\?[^"\'\s>]*)?)["\']?',
re.IGNORECASE, re.IGNORECASE,
) )