mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 15:43:26 +00:00
Merge branch 'dev' into extension
This commit is contained in:
@@ -15,10 +15,7 @@ export const vidsrcembedScraper = makeEmbed({
|
||||
},
|
||||
});
|
||||
|
||||
const match = html
|
||||
.match(hlsURLRegex)?.[1]
|
||||
?.replace(/(\/\/\S+?=)/g, '')
|
||||
.replace('#2', '');
|
||||
const match = html.match(hlsURLRegex)?.[1]?.replace(/(\/\/\S+?=)|#2|=/g, '');
|
||||
if (!match) throw new Error('Unable to find HLS playlist');
|
||||
const finalUrl = atob(match);
|
||||
|
||||
|
Reference in New Issue
Block a user