diff --git a/src/providers/embeds/vidsrc.ts b/src/providers/embeds/vidsrc.ts index 9da5a9f..93d55c5 100644 --- a/src/providers/embeds/vidsrc.ts +++ b/src/providers/embeds/vidsrc.ts @@ -15,11 +15,7 @@ export const vidsrcembedScraper = makeEmbed({ }, }); - const match = html - .match(hlsURLRegex)?.[1] - ?.replace(/(\/\/\S+?=)/g, '') - .replace('#2', '') - .replace(/=/g, ''); + const match = html.match(hlsURLRegex)?.[1]?.replace(/(\/\/\S+?=)|#2|=/g, ''); if (!match) throw new Error('Unable to find HLS playlist'); const finalUrl = atob(match);