Skip to content

Added feature to censor explicit language for song name as well as artist name#119

Merged
kittinan merged 4 commits intokittinan:masterfrom
farhan11166:master
Oct 7, 2025
Merged

Added feature to censor explicit language for song name as well as artist name#119
kittinan merged 4 commits intokittinan:masterfrom
farhan11166:master

Conversation

@farhan11166
Copy link
Contributor

@farhan11166 farhan11166 commented Oct 6, 2025

Added feature to censor explicit language for song name as well as artist name by using profanityfilter library and creating two functions in app/view.py (line 342-344):

profanity_check_n(name): marks the whole word with asterik.
Screenshot from 2025-10-07 00-02-16

profanity_check(name): marks the whole word as asterik except the first and last letter of that censored word.
Screenshot from 2025-10-07 00-03-58

Currently, the profanity_check function is being used so as to maintain some context about the word being censored.
I also changed ' BASE_URL ' in .envexample to 'http://127.0.0.1:3000/api' as spotify no longer accepts localhost in Request URI

@farhan11166 farhan11166 changed the title Added feature to censor explicit language Added feature to censor explicit language for song name as well as artist name Oct 6, 2025
@farhan11166
Copy link
Contributor Author

@kittinan please review this solves ISSUE #87

Copy link
Owner

@kittinan kittinan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i refactor profanity function to util and add UI for enable it.

@kittinan kittinan merged commit 17993db into kittinan:master Oct 7, 2025
5 checks passed
@Soontosh
Copy link

Soontosh commented Oct 7, 2025

Thanks @kittinan and @farhan11166 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants