mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 17:03:26 +00:00
Merge branch 'dev' into dev
This commit is contained in:
@@ -32,8 +32,10 @@ export const vidsrcembedScraper = makeEmbed({
|
|||||||
if (!finalUrl.includes('.m3u8')) throw new Error('Unable to find HLS playlist');
|
if (!finalUrl.includes('.m3u8')) throw new Error('Unable to find HLS playlist');
|
||||||
|
|
||||||
let setPassLink = html.match(setPassRegex)?.[1];
|
let setPassLink = html.match(setPassRegex)?.[1];
|
||||||
if (!setPassLink) throw new Error('Unable to find set_pass.php link');
|
|
||||||
|
|
||||||
|
// isn't neeeded, the stream works without it anyway
|
||||||
|
// shouldn't fail if the setpass link is not found
|
||||||
|
if (setPassLink) {
|
||||||
if (setPassLink.startsWith('//')) {
|
if (setPassLink.startsWith('//')) {
|
||||||
setPassLink = `https:${setPassLink}`;
|
setPassLink = `https:${setPassLink}`;
|
||||||
}
|
}
|
||||||
@@ -46,6 +48,7 @@ export const vidsrcembedScraper = makeEmbed({
|
|||||||
referer: ctx.url,
|
referer: ctx.url,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
stream: [
|
stream: [
|
||||||
|
Reference in New Issue
Block a user