mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 10:31:48 +01:00
double map into one
This commit is contained in:
parent
7af58dd9e8
commit
d20ab4be08
@ -152,10 +152,9 @@ export function makeVideoElementDisplayInterface(): DisplayInterface {
|
||||
|
||||
if (isExtensionActiveCached()) {
|
||||
hls.on(Hls.Events.LEVEL_LOADED, async (_, data) => {
|
||||
console.log(data);
|
||||
const chunkUrlsDomains = data.details.fragments
|
||||
.map((v) => v.url)
|
||||
.map((v) => new URL(v).hostname);
|
||||
const chunkUrlsDomains = data.details.fragments.map(
|
||||
(v) => new URL(v.url).hostname,
|
||||
);
|
||||
const chunkUrls = [...new Set(chunkUrlsDomains)];
|
||||
|
||||
await setDomainRule({
|
||||
|
Loading…
Reference in New Issue
Block a user