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,15 +230,10 @@ 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 result = { const headers = {
streams: [
{
title: "default",
streamUrl: streamUrl,
headers: {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0", "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": "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", "Accept-Language": "en-US,en;q=0.5",
@ -250,7 +245,18 @@ async function extractStreamUrl(ID) {
"Sec-Fetch-Site": "same-origin", "Sec-Fetch-Site": "same-origin",
"Accept-Encoding": "identity", "Accept-Encoding": "identity",
"Priority": "u=4", "Priority": "u=4",
"TE": "trailers" "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: proxyUrl,
headers: {
"Origin": "https://vidnest.fun"
} }
} }
], ],
@ -313,15 +319,10 @@ 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 result = { const headers = {
streams: [
{
title: "default",
streamUrl: streamUrl,
headers: {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0", "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": "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", "Accept-Language": "en-US,en;q=0.5",
@ -333,7 +334,18 @@ async function extractStreamUrl(ID) {
"Sec-Fetch-Site": "same-origin", "Sec-Fetch-Site": "same-origin",
"Accept-Encoding": "identity", "Accept-Encoding": "identity",
"Priority": "u=4", "Priority": "u=4",
"TE": "trailers" "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: proxyUrl,
headers: {
"Origin": "https://vidnest.fun"
} }
} }
], ],