Update mapple/mapple.js

This commit is contained in:
aka paul 2025-11-27 20:13:24 +00:00
parent 6e8a009d77
commit 975b68270e

View file

@ -199,8 +199,8 @@ async function extractNextActionIdentifier(watchUrl) {
throw new Error("error 1");
}
const beforeLayoutMatch = htmlText.match(/<script[^>]*src="([^"]*\.js)"[^>]*><\/script><script[^>]*src="[^"]*app\/watch\/movie\/[^"]*layout-[^"]*\.js"/);
const beforeLayoutMatch = htmlText.match(/<script[^>]*src="([^"]*\.js)"[^>]*><\/script><script[^>]*src="[^"]*app\/watch\/(movie|tv)\/[^"]*layout-[^"]*\.js"/);
if (!beforeLayoutMatch || !beforeLayoutMatch[1]) {
throw new Error("error 2");
}