From d96bb7c7761ca572bf3d4830b09175e0e5e97109 Mon Sep 17 00:00:00 2001 From: Trevor Mears Date: Sun, 11 Jan 2026 12:48:03 -0800 Subject: [PATCH] fix: replace spread operators with concat to handle massive M3U playlists --- public/js/components/ChannelList.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/components/ChannelList.js b/public/js/components/ChannelList.js index 34a02f1..1256b7c 100644 --- a/public/js/components/ChannelList.js +++ b/public/js/components/ChannelList.js @@ -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); } /**