fix: remove deduplication logic from channel list
This commit is contained in:
@@ -807,18 +807,7 @@ class ChannelList {
|
|||||||
sourceType: 'xtream'
|
sourceType: 'xtream'
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// Deduplicate by name within the same group (Xtream often sends backup streams with same name)
|
this.channels = this.channels.concat(channelList);
|
||||||
const seen = new Set();
|
|
||||||
const uniqueChannels = [];
|
|
||||||
for (const ch of channelList) {
|
|
||||||
const key = `${ch.groupTitle}|${ch.name}`;
|
|
||||||
if (!seen.has(key)) {
|
|
||||||
seen.add(key);
|
|
||||||
uniqueChannels.push(ch);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this.channels = this.channels.concat(uniqueChannels);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user