diff --git a/hollymoviehd/hollymoviehd.js b/hollymoviehd/hollymoviehd.js index 5d0fd7e..72cb49d 100644 --- a/hollymoviehd/hollymoviehd.js +++ b/hollymoviehd/hollymoviehd.js @@ -230,27 +230,33 @@ async function extractStreamUrl(ID) { console.log(postText); const data = JSON.parse(postText); const sources = data.sources; - const hlsSource = sources.find(s => s.type === 'mp4' && s.file.startsWith('//khdiamondcdn.asia')); + const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('https://flashstream.cc/pl/')); if (hlsSource) { - const streamUrl = "https:" + hlsSource.file; + const streamUrl = hlsSource.file; + const headers = { + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0", + "Accept": "video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5", + "Accept-Language": "en-US,en;q=0.5", + "Range": "bytes=0-", + "Alt-Used": "flashstream.cc", + "Connection": "keep-alive", + "Referer": "https://flashstream.cc/t: video", + "Sec-Fetch-Mode": "no-cors", + "Sec-Fetch-Site": "same-origin", + "Accept-Encoding": "identity", + "Priority": "u=4", + "TE": "trailers", + "Origin": "https://vidnest.fun" + }; + const encodedHeaders = encodeURIComponent(JSON.stringify(headers)); + const proxyUrl = `https://proxy2.aether.mom/proxy?url=${encodeURIComponent(streamUrl)}&headers=${encodedHeaders}`; const result = { streams: [ { title: "default", - streamUrl: streamUrl, + streamUrl: proxyUrl, headers: { - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0", - "Accept": "video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5", - "Accept-Language": "en-US,en;q=0.5", - "Range": "bytes=0-", - "Alt-Used": "flashstream.cc", - "Connection": "keep-alive", - "Referer": "https://flashstream.cc/t: video", - "Sec-Fetch-Mode": "no-cors", - "Sec-Fetch-Site": "same-origin", - "Accept-Encoding": "identity", - "Priority": "u=4", - "TE": "trailers" + "Origin": "https://vidnest.fun" } } ], @@ -313,27 +319,33 @@ async function extractStreamUrl(ID) { console.log(postText); const data = JSON.parse(postText); const sources = data.sources; - const hlsSource = sources.find(s => s.type === 'mp4' && s.file.startsWith('//khdiamondcdn.asia')); + const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('https://flashstream.cc/pl/')); if (hlsSource) { - const streamUrl = "https:" + hlsSource.file; + const streamUrl = hlsSource.file; + const headers = { + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0", + "Accept": "video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5", + "Accept-Language": "en-US,en;q=0.5", + "Range": "bytes=0-", + "Alt-Used": "flashstream.cc", + "Connection": "keep-alive", + "Referer": "https://flashstream.cc/t: video", + "Sec-Fetch-Mode": "no-cors", + "Sec-Fetch-Site": "same-origin", + "Accept-Encoding": "identity", + "Priority": "u=4", + "TE": "trailers", + "Origin": "https://vidnest.fun" + }; + const encodedHeaders = encodeURIComponent(JSON.stringify(headers)); + const proxyUrl = `https://proxy2.aether.mom/proxy?url=${encodeURIComponent(streamUrl)}&headers=${encodedHeaders}`; const result = { streams: [ { title: "default", - streamUrl: streamUrl, + streamUrl: proxyUrl, headers: { - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0", - "Accept": "video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5", - "Accept-Language": "en-US,en;q=0.5", - "Range": "bytes=0-", - "Alt-Used": "flashstream.cc", - "Connection": "keep-alive", - "Referer": "https://flashstream.cc/t: video", - "Sec-Fetch-Mode": "no-cors", - "Sec-Fetch-Site": "same-origin", - "Accept-Encoding": "identity", - "Priority": "u=4", - "TE": "trailers" + "Origin": "https://vidnest.fun" } } ],