mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +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:
@@ -15,10 +15,7 @@ export const vidsrcembedScraper = makeEmbed({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const match = html
|
const match = html.match(hlsURLRegex)?.[1]?.replace(/(\/\/\S+?=)|#2|=/g, '');
|
||||||
.match(hlsURLRegex)?.[1]
|
|
||||||
?.replace(/(\/\/\S+?=)/g, '')
|
|
||||||
.replace('#2', '');
|
|
||||||
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