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