FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Private video error

Open 4yman-0 opened this issue 11 months ago • 7 comments

Guidelines

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

4yman-0 avatar Feb 21 '25 11:02 4yman-0

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.

Image

If "Show family-firendly only" is disabled, FreeTube fails to read the like count and shows a broken video player.

Image

4yman-0 avatar Feb 26 '25 18:02 4yman-0

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:

Image

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.

exekutive avatar Mar 08 '25 12:03 exekutive

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

4yman-0 avatar Mar 09 '25 10:03 4yman-0

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 :)

exekutive avatar Mar 09 '25 11:03 exekutive

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:

Image

(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 avatar Jul 12 '25 13:07 imre84

@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')