Spaces:
Running
Running
Z User commited on
Commit ·
51e5786
1
Parent(s): 561be79
Fix syntax error in HDMovie2 regex
Browse files1224 unmodified lines122512261227122812291230123127 unmodified lines12591260126112621263126412651224 unmodified linesif not embed_url:continueembed_url = embed_url.replace("\/", "/")# Try hdm2.ink playerhdm2_match = re.search(r'src="(https://hdm2\.ink/play\?v=[^"]+)"', embed_url)27 unmodified linesif molop_match:molop_resp = await client.get(molop_match.group(1), headers={"Referer": f"{BASE}/"})molop_html = molop_resp.textsniff_match = re.search(r'sniff\s*\(\s*["'][^"']+["']\s*,\s*["'][^"']+["']\s*,\s*["']([a-f0-9]+)["']', 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"1224 unmodified lines122512261227122812291230123127 unmodified lines12591260126112621263126412651224 unmodified linesif not embed_url:continueembed_url = embed_url.replace("\\/", "/")# Try hdm2.ink playerhdm2_match = re.search(r'src="(https://hdm2\.ink/play\?v=[^"]+)"', embed_url)27 unmodified linesif molop_match:molop_resp = await client.get(molop_match.group(1), headers={"Referer": f"{BASE}/"})molop_html = molop_resp.textsniff_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