diff --git a/hollymoviehd/hollymoviehd.js b/hollymoviehd/hollymoviehd.js index c5df4d2..040b5a6 100644 --- a/hollymoviehd/hollymoviehd.js +++ b/hollymoviehd/hollymoviehd.js @@ -230,9 +230,9 @@ async function extractStreamUrl(ID) { console.log(postText); const data = JSON.parse(postText); const sources = data.sources; - const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('https://flashstream.cc/pl/')); + const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('/streamsvr/')); if (hlsSource) { - const streamUrl = hlsSource.file; + const streamUrl = 'https://flashstream.cc' + hlsSource.file; const result = { streams: [ { @@ -313,9 +313,9 @@ async function extractStreamUrl(ID) { console.log(postText); const data = JSON.parse(postText); const sources = data.sources; - const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('https://flashstream.cc/pl/')); + const hlsSource = sources.find(s => s.type === 'hls' && s.file.startsWith('/streamsvr/')); if (hlsSource) { - const streamUrl = hlsSource.file; + const streamUrl = 'https://flashstream.cc' + hlsSource.file; const result = { streams: [ {