From 975b68270eb8776116d6464f0c329832081a4ee0 Mon Sep 17 00:00:00 2001 From: aka paul <50n50@noreply.localhost> Date: Thu, 27 Nov 2025 20:13:24 +0000 Subject: [PATCH] Update mapple/mapple.js --- mapple/mapple.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapple/mapple.js b/mapple/mapple.js index c6344343..d14ae497 100644 --- a/mapple/mapple.js +++ b/mapple/mapple.js @@ -199,8 +199,8 @@ async function extractNextActionIdentifier(watchUrl) { throw new Error("error 1"); } - const beforeLayoutMatch = htmlText.match(/]*src="([^"]*\.js)"[^>]*><\/script>]*src="[^"]*app\/watch\/movie\/[^"]*layout-[^"]*\.js"/); - + const beforeLayoutMatch = htmlText.match(/]*src="([^"]*\.js)"[^>]*><\/script>]*src="[^"]*app\/watch\/(movie|tv)\/[^"]*layout-[^"]*\.js"/); + if (!beforeLayoutMatch || !beforeLayoutMatch[1]) { throw new Error("error 2"); }