feat: Add user-configurable Keyword Filter for video titles#5796
Open
XiveZ wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
VideoGroupclass. This ensures that keywords are applied globally across all sections: Home, Subscriptions, Search, and Playlists.4.Performance & Safety:
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.