-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video title filter / blacklist #4202
Video title filter / blacklist #4202
Conversation
A bunch of issues regarding shorts/live videos were closed as a duplicate #1070 So we should also take that into account somehow
U could also just remove Closes behind issue number |
Whoops, I'll remove the closing. Although to be fair, those other aspects aren't made clear in the original post. |
@efb4f5ff-1298-471a-8973-3d47447115dc With the current information provided by YouTube, it's impossible to hide shorts on all pages, the only way we know something is a short, is if it's on a shorts specific page. |
Would it be possible to hide live, premiere and upcoming streams |
We can probably hide currently live stuff and upcoming stuff, we won't be able to differentiate between live stream or premiere and we also can't do any of those for RSS. |
From what I can discern, given that they have a |
I think having this pull request just do the title filtering is fine. |
Yeah, that sounds good to me. If #1070 is serving a secondary purpose of improving the expansiveness of the existing |
I agree it doesnt have to be added in this PR but Should we even implement that if we cant differentiate them when RSS is enabled? Feels like a half baked feature If the answer to this is no then i guess we can still put closes behind issue nr |
Seems like a separate issue should be created for it. If we have sub-issues that are not referenced in main issue titles or descriptions, it's hard for people to search for those & inevitably leads to dupes. |
Doesnt this close #3086 ? |
Why we have so many dupes Closes #95 |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
…at/hide-videos-containing-text
Conflicts have been resolved. A maintainer will review the pull request shortly. |
It seems a few users might want this feature. I mean I was just about to open an issue asking for this exact thing until I found this PR so it's nice to see someone implemented the thing :D @jasonhenriquez Nice job! There is only one thing I would like to ask: It is possible to add a way to export the "blocklist" as a text file? You know as a backup file. That would be nice in the case you had a lot of blocked words. |
@gelatinbomb That will be possible once #1018 is implemented - a user-friendly means of sharing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Copy original video title from subscriptions -> Put it in the blacklist -> check subscription page -> video gone -> Enable DeArrow -> video still gone even though DeArrow title is different
- Enable DeArrow -> Go to subscription page -> copy a word/title of a vid that has a title change -> insert into blacklist -> go to subscription page -> See video not gone
- Should we even do
word fragments
? What if i really hateores
for some reason so i insertore
but i really lovecores
, now i dont get to see all the beautiful vids aboutcores
:( - Why not hide playlist titles and video titles within a playlist?
Implementation-wise, the irksome part of that is that the DeArrow logic is in the Behavior-wise, the main question is what would we want the expected behavior to be in both of these cases. Would you really want to see a video if either the DeArrow title or the original contained a banned word? I would think not, so that would imply that the most preferred behavior would be to filter if either matched. But then again, that does put a lot of power in DeArrow contributors, so maybe we shouldn't care about it to that extent. So I'm currently leaning on just ignoring the DeArrow title consistently, which is what the code is currently doing. Let me know what you think.
I do think this is a worthwhile hypothetical. It's a trail that often ends in regex, which I think is probably a bit of overkill for the initial feature & isn't always good for usability (How do you indicate that this is a regex tag versus just a regular tag? If all tags are regex tags, will non - power users like it if they can't use special characters like they want? How do you handle errors? How does it affect performance?). So I think we should let it simmer and see how it goes for people. On if you want to be able to differentiate it without regex, it becomes a question of "is the banning of partial words banning too much stuff for me" versus "is the banning of only full words banning too little". It's a good question to ask. I think the second one is closer to where people are, but I can't really know that for sure. Is it okay if my answer to this is "let's see how many people complain" and leave it there for now?
Good question! I was going off of what we were doing in our components, as discussed in the Matrix chat. I figure that the same push to add it to playlists will also be adding the channel logic as well. Unsure of the considerations there, and this PR is a little big, so I left it be. But I can add this and/or channel filtering logic to there as well if desired. Edit: following the discussion in the Matrix chat, I'll address this. |
I am not sure if clearing input when input already exists is a good UX |
This PR is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
bump |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
…at/hide-videos-containing-text
c985430
to
1bbc75e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested
- Video list (subscription)
- Play Next in watch page (with some video hidden) to ensure only visible video played next
- Tested community post (with video) hidden
Video & playlist title filter / blacklist
Pull Request Type
Related issue
closes #1070
closes #3086
closes #95
Description
Enter a fragment, word, or phrase (case insensitive) to hide all videos with titles containing it throughout all of FreeTube, except History and videos inside of playlists. Special exclusion text appears for community posts.
Nothing is hidden on the Channel route.Now those videos do not appear on any view (reasoning: you don't want to see videos or playlists with blacklisted text in any part of your FreeTube browsing experience). Incidentally: to set a minimum character length of 3 for blacklisted inputs, this PR implements aminInputLength
prop inft-input
andft-input-tags
.Other notes:
Screenshots
Testing
Desktop