mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-05 01:09:50 +00:00
Remove equal signs inside base64 encoded string
This commit is contained in:
parent
b3212bd327
commit
f3e4786b72
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ export const vidsrcembedScraper = makeEmbed({
|
|||
const match = html
|
||||
.match(hlsURLRegex)?.[1]
|
||||
?.replace(/(\/\/\S+?=)/g, '')
|
||||
.replace('#2', '');
|
||||
.replace('#2', '')
|
||||
.replace(/=/g, '');
|
||||
if (!match) throw new Error('Unable to find HLS playlist');
|
||||
const finalUrl = atob(match);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue