-
Notifications
You must be signed in to change notification settings - Fork 897
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
Add Unlisted badge on watch page for unlisted videos #5856
Add Unlisted badge on watch page for unlisted videos #5856
Conversation
I'd appreciate any input on adding an unlisted badge in the form of a |
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.
In addition to my other review comments, I also noticed that you only added the functionality to the local API and as the pull request description doesn't provide any information on why you didn't implement it for the Invidious API, I am assuming you forgot to implement it and didn't test both APIs. Please implement it for the Invidious API too.
That information isn't available there, so you would first have to add logic to save that information when a video is watched or added to a playlist (keep in mind that if someone adds the video to a playlist or marks it as watched from anywhere other than the watch page for that specific video, the information will be unavailable too) before you could show a badge and even then it would only apply to videos added after your changes. |
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
@absidue I've removed the hardcoded color and font values and implemented the functionality for the Invidious API |
Head branch was pushed to by a user without write access
b48db0d
to
66888bf
Compare
My IV instance only says content unavailable for unlisted videos |
@PikachuEXE https://yt.drgnz.club/ works for me, but Invidious instances have always worked unreliably for me in FreeTube; I often have to reload the video a bunch of times for it to play |
Thanks, turns out the instance I use got strange issue and report content unavailable for all videos not just unlisted |
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.
Size unit acceptable?
font-size: 0.8rem; | ||
line-height: 0.5rem; |
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.
Not sure if we want to use rem as unit (for other devs)
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
use pixels instead of rems for font-size remove line-height use non-fractional font-size value add vertical padding
Head branch was pushed to by a user without write access
769e6b8
to
95fd51d
Compare
* Add badge to watch page indicating whether video is unlisted (FreeTubeApp#1475) * minor updates to unlistedBadge CSS use pixels instead of rems for font-size remove line-height use non-fractional font-size value add vertical padding
* Add badge to watch page indicating whether video is unlisted (FreeTubeApp#1475) * minor updates to unlistedBadge CSS use pixels instead of rems for font-size remove line-height use non-fractional font-size value add vertical padding
Add Unlisted badge on watch page for unlisted videos
Pull Request Type
Related issue
closes #1475
Description
This adds a badge if the currently playing video is unlisted.
Screenshots
Before:
After:
Testing
Tested with both Local and Invidious APIs
Desktop
Additional context
Unlisted videos for testing can be found at https://unlistedvideos.com/