diff --git a/M3U8/scrapers/streambtw.py b/M3U8/scrapers/streambtw.py index 3833310..e9c1f52 100644 --- a/M3U8/scrapers/streambtw.py +++ b/M3U8/scrapers/streambtw.py @@ -12,9 +12,9 @@ log = get_logger(__name__) 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( @@ -31,7 +31,7 @@ async def process_event( return 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, )