fix: replace spread operators with concat to handle massive M3U playlists

This commit is contained in:
Trevor Mears
2026-01-11 12:48:03 -08:00
parent aeee45869b
commit d96bb7c776
+4 -4
View File
@@ -660,7 +660,7 @@ class ChannelList {
sourceType: 'xtream'
}));
this.groups.push(...categoryGroups);
this.groups = this.groups.concat(categoryGroups);
// Map streams to channels
const channelList = streams.map(stream => ({
@@ -687,7 +687,7 @@ class ChannelList {
}
}
this.channels.push(...uniqueChannels);
this.channels = this.channels.concat(uniqueChannels);
}
/**
@@ -709,7 +709,7 @@ class ChannelList {
sourceType: 'm3u'
}));
this.groups.push(...m3uGroups);
this.groups = this.groups.concat(m3uGroups);
// Add channels - use the stable id from the server
const channelList = data.channels.map(ch => ({
@@ -724,7 +724,7 @@ class ChannelList {
sourceType: 'm3u'
}));
this.channels.push(...channelList);
this.channels = this.channels.concat(channelList);
}
/**