Repository navigation
feat: block explicit songs (#720) - #801
Open
ZeroIndex-x636A06 wants to merge 1 commit into
Open
ZeroIndex-x636A06 wants to merge 1 commit into
ZeroIndex-x636A06 wants to merge 1 commit into
Conversation
ZeroIndex-x636A06
force-pushed
the
feat/explicit-filter-slim
branch
5 times, most recently
from
October 16, 2026 18:05
75b1cd6 to
a88c324
Compare
Adds a "Block explicit songs" setting, off by default. When on, songs YouTube Music marks explicit are left out of AutoPlay and radio and skipped in the queue. Song rows, Home cards and search's top result take an explicitBlocked parameter: a blocked one is greyed out, and tapping it asks whether to allow the song or turn blocking off. A song can also be allowed from its menu. Home cards and search suggestions now carry the explicit badge, so they show the E like other song rows.
ZeroIndex-x636A06
force-pushed
the
feat/explicit-filter-slim
branch
from
October 16, 2026 18:08
a88c324 to
2b82ab7
Compare
This branch has not been deployed
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.
Closes #720
A smaller take on #780, as requested: no lyrics detection, just YouTube Music's explicit badge.
What it adds
explicitBlockedparameter, true only while blocking is on and the song isn't allowed. A blocked one is greyed out, and tapping it asks: Allow this song, Turn off blocking, or Cancel. On Android the prompt uses the app's existing alert style.The rule lives in
shared/…/playback/ExplicitFilter.ktand the row helpers insharedUi/…/components/ExplicitBlocked.kt(copied intodesktopUilike the rest of the shared UI), so both apps share them. Rebased onto the current v1.8.1.Testing
ExplicitFilterTestpasses.LocaleStringsTestfor zh-CN and zh-TW, which already fail on v1.8.1 (untranslatedartist_signaturesstrings).Note: Just to be upfront, the code in this PR was generated with Claude, however I tested every feature by hand on both desktop (Linux) and mobile (Android) before submitting it. If anything looks off or you want something done differently, just let me know and I'll get it taken care of!