Update hollymoviehd/hollymoviehd.js

This commit is contained in:
aka paul 2026-01-01 18:34:03 +00:00
parent e21a030392
commit aebf2b3e06

View file

@ -230,27 +230,33 @@ async function extractStreamUrl(ID) {
console.log(postText); console.log(postText);
const data = JSON.parse(postText); const data = JSON.parse(postText);
const sources = data.sources; 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) { 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 = { const result = {
streams: [ streams: [
{ {
title: "default", title: "default",
streamUrl: streamUrl, streamUrl: proxyUrl,
headers: { headers: {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0", "Origin": "https://vidnest.fun"
"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"
} }
} }
], ],
@ -313,27 +319,33 @@ async function extractStreamUrl(ID) {
console.log(postText); console.log(postText);
const data = JSON.parse(postText); const data = JSON.parse(postText);
const sources = data.sources; 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) { 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 = { const result = {
streams: [ streams: [
{ {
title: "default", title: "default",
streamUrl: streamUrl, streamUrl: proxyUrl,
headers: { headers: {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0", "Origin": "https://vidnest.fun"
"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"
} }
} }
], ],