[Bug]: Private video error
Guidelines
- [x] I have encountered this bug in the latest release of FreeTube.
- [x] I have encountered this bug in the official downloads of FreeTube.
- [x] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
- [x] I have searched the documentation for information that matches the description of the bug I want to file, without success.
- [x] This issue contains only one bug.
Describe the bug
Trying to open a private youtube video causes an error without explaining why. example: A music video
If "Show family-firendly only" is enabled, FreeTube shows "This video is age-restricted" even if it's not. If "Show family-firendly only" is disabled, FreeTube fails to read the like count and shows a broken video player.
Expected Behavior
Show a message like "This video is private" or "FreeTube cannot view private videos. They require a Google account and access from the channel".
Issue Labels
content not loading
FreeTube Version
v0.23.1-nightly-5646 Beta
Operating System Version
Arch ByTheWay
Installation Method
.apk (Alpine Linux Package)
Primary API used
Local API
Last Known Working FreeTube Version (If Any)
Unknown
Additional Information
Youtube's API returns a message if the requested video is private. FreeTube can tell if a video is private.
Nightly Build
- [x] I have encountered this bug in the latest nightly build.
This normally shouldnt happen like this, Definitely something going wrong here. Im getting the following errors when navigating to the link you provided
https://github.com/user-attachments/assets/b21955dd-2b48-4893-9fce-db146d7f8875
This normally shouldnt happen like this, Definitely something going wrong here. Im getting the following errors when navigating to the link you provided
Have you tried going to the link from the settings/trending/etc. page?
Screenshots
If "Show family-firendly only" is enabled, FreeTube shows "This video is age-restricted" even if it's not.
If "Show family-firendly only" is disabled, FreeTube fails to read the like count and shows a broken video player.
Sorry uploaded the wrong file. It has been corrected now. See previous comment
In FT, open link to an unavailable video. eg: https://www.youtube.com/watch?v=OBGeq9MGLeg
FT shows some cryptic feedback:
Should display friendly feedback message. For example, browser shows:
Video unavailable
This video is no longer available because the YouTube account associated with this video has been terminated.
FT shows some cryptic feedback: ...
The first error message says "This video is unavailable". The other errors are from FT trying to use Invidious to load the video and failing.
You are trying to load an unavailable video and this issue is about private videos.
Edit: #6978 Edit 2: comment
Principle stays the same.
The first error message says "This video is unavailable".
The reason WHY it's unavailable is known to us. Show it.
The other errors are from FT trying to use Invidious to load the video and failing.
the errors are redundant since the video doesn't even exist. 99% of users have absolutely no idea what a JSON token is.
this issue is about private videos.
Scope has been expanded. the issue is now about showing friendly messages :)
Hello, issue is still present, for this video: https://www.youtube.com/watch?v=K97lp7xWPCQ
youtube clearly says: "This is a private video. Please sign in to verify that you may see it."
meanwhile freetube confusingly says the following:
(first I was suspecting that once again freetube is unable to play any videos at all, however upon further investigation I figured out this video is unplayable due to being made private, freetube still works fine)
current behaviour: multiple confusing error messages as per screenshot above
expected behaviour: there should be only a single error message, in plain English saying something like "This video is private, cannot be played, sorry"
bug present in this version: 3a843345ca279bd5e9594ce169325cdb43c89a22398d9154b2d25b98aec1ba67 FreeTube-0.23.5-nightly-6211.AppImage
@imre84 you should get the video is unavailable error but you received a rare error that when trying to view that private video. Please open up a separate bug report for this with the following title: Private video - TypeError: Cannot read properties of undefined (reading 'view_count')