diff --git a/hollymoviehd/hollymoviehd.js b/hollymoviehd/hollymoviehd.js index 72cb49d..040b5a6 100644 --- a/hollymoviehd/hollymoviehd.js +++ b/hollymoviehd/hollymoviehd.js @@ -230,33 +230,27 @@ async function extractStreamUrl(ID) { console.log(postText); const data = JSON.parse(postText); const sources = data.sources; - const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('https://flashstream.cc/pl/')); + const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('/streamsvr/')); if (hlsSource) { - 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 streamUrl = 'https://flashstream.cc' + hlsSource.file; const result = { streams: [ { title: "default", - streamUrl: proxyUrl, + streamUrl: streamUrl, headers: { - "Origin": "https://vidnest.fun" + "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" } } ], @@ -319,33 +313,27 @@ async function extractStreamUrl(ID) { console.log(postText); const data = JSON.parse(postText); const sources = data.sources; - const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('https://flashstream.cc/pl/')); + const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('/streamsvr/')); if (hlsSource) { - 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 streamUrl = 'https://flashstream.cc' + hlsSource.file; const result = { streams: [ { title: "default", - streamUrl: proxyUrl, + streamUrl: streamUrl, headers: { - "Origin": "https://vidnest.fun" + "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" } } ],