Fixed channel ID format mismatch
This commit is contained in:
@@ -298,7 +298,9 @@ class ChannelList {
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
for (const channel of channels) {
|
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;
|
if (channelHidden && !this.showHidden) continue;
|
||||||
|
|
||||||
const isActive = this.currentChannel?.id === channel.id;
|
const isActive = this.currentChannel?.id === channel.id;
|
||||||
|
|||||||
@@ -284,7 +284,9 @@ class EpgGuide {
|
|||||||
|
|
||||||
// Get channels and filter out hidden ones (always enforce hidden in EPG)
|
// Get channels and filter out hidden ones (always enforce hidden in EPG)
|
||||||
const playableChannels = (channelList.channels || []).filter(ch => {
|
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);
|
const isGroupHidden = channelList.isHidden('group', ch.sourceId, ch.groupTitle);
|
||||||
return !isChannelHidden && !isGroupHidden;
|
return !isChannelHidden && !isGroupHidden;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user