forked from 50n50/sources
Update hollymoviehd/hollymoviehd.js
This commit is contained in:
@@ -232,18 +232,16 @@ async function extractStreamUrl(ID) {
|
|||||||
const sources = data.sources;
|
const sources = data.sources;
|
||||||
const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('/streamsvr/'));
|
const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('/streamsvr/'));
|
||||||
if (hlsSource) {
|
if (hlsSource) {
|
||||||
const originalStreamUrl = 'https://flashstream.cc' + hlsSource.file;
|
const streamUrl = '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 = {
|
const result = {
|
||||||
streams: [
|
streams: [
|
||||||
{
|
{
|
||||||
title: "default",
|
title: "default",
|
||||||
streamUrl: streamUrl,
|
streamUrl: streamUrl,
|
||||||
headers: {}
|
headers: {
|
||||||
|
"Referer": "https://flashstream.cc/",
|
||||||
|
"Origin": "https://flashstream.cc/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
subtitle: ""
|
subtitle: ""
|
||||||
@@ -307,18 +305,16 @@ async function extractStreamUrl(ID) {
|
|||||||
const sources = data.sources;
|
const sources = data.sources;
|
||||||
const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('/streamsvr/'));
|
const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('/streamsvr/'));
|
||||||
if (hlsSource) {
|
if (hlsSource) {
|
||||||
const originalStreamUrl = 'https://flashstream.cc' + hlsSource.file;
|
const streamUrl = '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 = {
|
const result = {
|
||||||
streams: [
|
streams: [
|
||||||
{
|
{
|
||||||
title: "default",
|
title: "default",
|
||||||
streamUrl: streamUrl,
|
streamUrl: streamUrl,
|
||||||
headers: {}
|
headers: {
|
||||||
|
"Referer": "https://flashstream.cc/",
|
||||||
|
"Origin": "https://flashstream.cc/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
subtitle: ""
|
subtitle: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user