mirror of
https://git.luna-app.eu/50n50/sources
synced 2026-01-12 01:18:11 +01:00
Update hollymoviehd/hollymoviehd.js
This commit is contained in:
parent
0851988b8d
commit
db30644f7f
1 changed files with 14 additions and 10 deletions
|
|
@ -232,16 +232,18 @@ async function extractStreamUrl(ID) {
|
|||
const sources = data.sources;
|
||||
const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('/streamsvr/'));
|
||||
if (hlsSource) {
|
||||
const streamUrl = 'https://flashstream.cc' + hlsSource.file;
|
||||
const originalStreamUrl = 'https://flashstream.cc' + hlsSource.file;
|
||||
const proxyHeaders = {
|
||||
"Referer": "https://flashstream.cc/",
|
||||
"Origin": "https://flashstream.cc/"
|
||||
};
|
||||
const streamUrl = `https://proxy2.aether.mom/proxy?url=${encodeURIComponent(originalStreamUrl)}&headers=${encodeURIComponent(JSON.stringify(proxyHeaders))}`;
|
||||
const result = {
|
||||
streams: [
|
||||
{
|
||||
title: "default",
|
||||
streamUrl: streamUrl,
|
||||
headers: {
|
||||
"Referer": "https://flashstream.cc/",
|
||||
"Origin": "https://flashstream.cc/"
|
||||
}
|
||||
headers: {}
|
||||
}
|
||||
],
|
||||
subtitle: ""
|
||||
|
|
@ -305,16 +307,18 @@ async function extractStreamUrl(ID) {
|
|||
const sources = data.sources;
|
||||
const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('/streamsvr/'));
|
||||
if (hlsSource) {
|
||||
const streamUrl = 'https://flashstream.cc' + hlsSource.file;
|
||||
const originalStreamUrl = 'https://flashstream.cc' + hlsSource.file;
|
||||
const proxyHeaders = {
|
||||
"Referer": "https://flashstream.cc/",
|
||||
"Origin": "https://flashstream.cc/"
|
||||
};
|
||||
const streamUrl = `https://proxy2.aether.mom/proxy?url=${encodeURIComponent(originalStreamUrl)}&headers=${encodeURIComponent(JSON.stringify(proxyHeaders))}`;
|
||||
const result = {
|
||||
streams: [
|
||||
{
|
||||
title: "default",
|
||||
streamUrl: streamUrl,
|
||||
headers: {
|
||||
"Referer": "https://flashstream.cc/",
|
||||
"Origin": "https://flashstream.cc/"
|
||||
}
|
||||
headers: {}
|
||||
}
|
||||
],
|
||||
subtitle: ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue