Remove equal signs inside base64 encoded string

This commit is contained in:
Jorrin
2024-01-19 20:04:50 +01:00
parent b3212bd327
commit f3e4786b72

View File

@@ -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);