Spaces:
Running
Running
Z User commited on
Commit ·
51e5786
1
Parent(s): 561be79
Fix syntax error in HDMovie2 regex
Browse files1224 unmodified lines1225122612271228122812291230123127 unmodified lines125912601261126212621263126412651224 unmodified lines if not embed_url: continue
embed_url = embed_url.replace("\/", "/") embed_url = embed_url.replace("\\/", "/")
# Try hdm2.ink player hdm2_match = re.search(r'src="(https://hdm2\.ink/play\?v=[^"]+)"', embed_url)27 unmodified lines if molop_match: molop_resp = await client.get(molop_match.group(1), headers={"Referer": f"{BASE}/"}) molop_html = molop_resp.text sniff_match = re.search(r'sniff\s*\(\s*["'][^"']+["']\s*,\s*["'][^"']+["']\s*,\s*["']([a-f0-9]+)["']', molop_html) sniff_match = re.search(r'sniff\([^,]+,[^,]+,\S+?([a-f0-9]{20,})', molop_html) if sniff_match: hash_val = sniff_match.group(1) m3u8_url = f"https://molop.art/m3u8/1/{hash_val}/master.m3u8?s=1&cache=1"main.py+2-2