Merge branch 'movie-web:dev' into dev

This commit is contained in:
lonelil
2024-04-07 22:13:42 +08:00
committed by GitHub

View File

@@ -32,8 +32,10 @@ export const vidsrcembedScraper = makeEmbed({
if (!finalUrl.includes('.m3u8')) throw new Error('Unable to find HLS playlist');
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('//')) {
setPassLink = `https:${setPassLink}`;
}
@@ -46,6 +48,7 @@ export const vidsrcembedScraper = makeEmbed({
referer: ctx.url,
},
});
}
return {
stream: [