Skip to content

Fix: Blocked channels still visible in search results#82

Open
BaselGamal0 wants to merge 1 commit into
InfinityLoop1308:mainfrom
BaselGamal0:fix/blocked-channel-search-bypass
Open

Fix: Blocked channels still visible in search results#82
BaselGamal0 wants to merge 1 commit into
InfinityLoop1308:mainfrom
BaselGamal0:fix/blocked-channel-search-bypass

Conversation

@BaselGamal0

Copy link
Copy Markdown

Bug

When a channel is added to the block list (Settings -> Filter -> Filter by Channel), searching for the channel still shows its icon/card and playlists in search results.

Root Cause

The applyBlocking() method in InfoItemsCollector was only checking StreamInfoItem (videos) against the blocked channel list. ChannelInfoItem (channels) and PlaylistInfoItem (playlists) were ignored.

Fix

Extended the channel filtering check in applyBlocking() to also filter out:

  • ChannelInfoItem (matched by name)
  • PlaylistInfoItem (matched by uploader name)

The applyBlocking() method only checked StreamInfoItem against the blocked channel list. ChannelInfoItem and PlaylistInfoItem were never filtered, allowing blocked channels and their playlists to appear in search results.

Extended the channel filter check to also remove:

- ChannelInfoItem (matched by getName())

- PlaylistInfoItem (matched by getUploaderName())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant