Merge branch 'dev' into extension

This commit is contained in:
William Oldham
2024-01-20 16:47:42 +00:00
committed by GitHub

View File

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