mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 14:53:24 +00:00
Remove equal signs inside base64 encoded string
This commit is contained in:
@@ -18,7 +18,8 @@ export const vidsrcembedScraper = makeEmbed({
|
|||||||
const match = html
|
const match = html
|
||||||
.match(hlsURLRegex)?.[1]
|
.match(hlsURLRegex)?.[1]
|
||||||
?.replace(/(\/\/\S+?=)/g, '')
|
?.replace(/(\/\/\S+?=)/g, '')
|
||||||
.replace('#2', '');
|
.replace('#2', '')
|
||||||
|
.replace(/=/g, '');
|
||||||
if (!match) throw new Error('Unable to find HLS playlist');
|
if (!match) throw new Error('Unable to find HLS playlist');
|
||||||
const finalUrl = atob(match);
|
const finalUrl = atob(match);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user