diff --git a/smashystream/smashystream.js b/smashystream/smashystream.js index c195cad..17a59fb 100644 --- a/smashystream/smashystream.js +++ b/smashystream/smashystream.js @@ -223,7 +223,7 @@ async function extractStreamUrl(ID) { const streamdata = decryptData.result.hls; const stream = "https://proxy.aether.mom/m3u8-proxy?url=https://smashyplayer.top"+streamdata; console.log(stream); - const subsEng = decryptData.result.subtitle["English"] || "https://error.org/"; + const subsEng = decryptData?.result?.subtitle?.["English"] || "https://error.org/"; const streams = []; @@ -283,7 +283,7 @@ async function extractStreamUrl(ID) { : ""; const stream = baseUrl + streamdata; console.log(stream); - const subsEng = decryptData.result.subtitle?.English || "https://error.org"; + const subsEng = decryptData?.result?.subtitle?.["English"] || "https://error.org/"; const streams = [];