e
This commit is contained in:
parent
48e650837b
commit
00000d9fb7
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue