Fixed channel ID format mismatch

This commit is contained in:
Trevor Mears
2025-12-28 16:14:28 -08:00
parent 7e5a4174d1
commit dc15e1f396
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -298,7 +298,9 @@ class ChannelList {
`;
for (const channel of channels) {
const channelHidden = !isFavoritesGroup && this.isHidden('channel', channel.sourceId, channel.id);
// Use streamId (raw ID) for hidden check since that's what SourceManager stores
const rawChannelId = channel.streamId || channel.id;
const channelHidden = !isFavoritesGroup && this.isHidden('channel', channel.sourceId, rawChannelId);
if (channelHidden && !this.showHidden) continue;
const isActive = this.currentChannel?.id === channel.id;
+3 -1
View File
@@ -284,7 +284,9 @@ class EpgGuide {
// Get channels and filter out hidden ones (always enforce hidden in EPG)
const playableChannels = (channelList.channels || []).filter(ch => {
const isChannelHidden = channelList.isHidden('channel', ch.sourceId, ch.id);
// Use streamId (raw ID) for hidden check since that's what SourceManager stores
const rawChannelId = ch.streamId || ch.id;
const isChannelHidden = channelList.isHidden('channel', ch.sourceId, rawChannelId);
const isGroupHidden = channelList.isHidden('group', ch.sourceId, ch.groupTitle);
return !isChannelHidden && !isGroupHidden;
});