mirror of
https://git.luna-app.eu/50n50/sources
synced 2026-01-12 17:38:37 +01:00
Update hollymoviehd/hollymoviehd.js
This commit is contained in:
parent
e21a030392
commit
aebf2b3e06
1 changed files with 42 additions and 30 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue