Skip to content

feat: Add user-configurable Keyword Filter for video titles#5796

Open
XiveZ wants to merge 2 commits into
yuliskov:masterfrom
XiveZ:feature/keyword-filter
Open

feat: Add user-configurable Keyword Filter for video titles#5796
XiveZ wants to merge 2 commits into
yuliskov:masterfrom
XiveZ:feature/keyword-filter

Conversation

@XiveZ

@XiveZ XiveZ commented May 20, 2026

Copy link
Copy Markdown

This PR introduces a Keyword Filter feature that allows users to block videos containing specific words in their titles. While the project had some internal filtering logic, it was not accessible to the end-user. This change provides a full UI and a centralized engine to manage content preferences.

Key Changes:

1.User Interface: Added a new "Keyword filter" section under Settings > General.
2.Management: Users can add multiple keywords and remove them via a dedicated management dialog.
3.Centralized Filtering: The filtering logic is now integrated into the core VideoGroup class. This ensures that keywords are applied globally across all sections: Home, Subscriptions, Search, and Playlists.
4.Performance & Safety:

  • Added validation for empty inputs.
  • Limited keywords to 100 characters each.
  • Limited the total number of keywords to 200 to prevent any impact on app performance.
    5.Code Cleanup: Removed hardcoded test keywords from the source code.

Why is this needed? Users often want to hide specific types of content (e.g., certain games, repetitive topics, or clickbait) that are not covered by standard category filters. This tool gives users fine-grained control over their feed.

Important Note: I am not a professional programmer. This feature was implemented with the help of AI to solve a specific problem I encountered while using the app. The code has been verified to compile and follow the project's existing architecture, but I kindly ask the maintainers to review it for any potential improvements.

@XiveZ XiveZ changed the title Add user-configurable Keyword Filter for video titles feat: Add user-configurable Keyword Filter for video titles May 20, 2026
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