Merge branch 'dev' into provider-tests

This commit is contained in:
mrjvs
2024-01-20 17:46:54 +01:00
committed by GitHub
3 changed files with 21 additions and 9 deletions

View File

@@ -15,10 +15,7 @@ export const vidsrcembedScraper = makeEmbed({
},
});
const match = html
.match(hlsURLRegex)?.[1]
?.replace(/(\/\/\S+?=)/g, '')
.replace('#2', '');
const match = html.match(hlsURLRegex)?.[1]?.replace(/(\/\/\S+?=)|#2|=/g, '');
if (!match) throw new Error('Unable to find HLS playlist');
const finalUrl = atob(match);