mirror of
https://github.com/sussy-code/providers.git
synced 2026-03-19 09:18:51 +00:00
Merge pull request #75 from movie-web/vidsrc-decoding-fix
VidSrc: Remove equal signs inside base64 encoded string
This commit is contained in:
commit
2834b1eff2
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue