Wrong error message for yt videos that are both age-gated and private #4627

Closed
opened 2026-02-21 00:20:51 -05:00 by deekerman · 4 comments
Owner

Originally created by @pps on GitHub (May 5, 2015).

Getting this error when trying to download this video: https://youtu.be/N-aDHKKRdso

[youtube] N-aDHKKRdso: Downloading webpage
[youtube] N-aDHKKRdso: Downloading embed webpage
[youtube] N-aDHKKRdso: Refetching age-gated info webpage
ERROR: N-aDHKKRdso: YouTube said: Please sign in to view this video.

Better error message would have been "this video is private".

Originally created by @pps on GitHub (May 5, 2015). Getting this error when trying to download this video: https://youtu.be/N-aDHKKRdso ``` [youtube] N-aDHKKRdso: Downloading webpage [youtube] N-aDHKKRdso: Downloading embed webpage [youtube] N-aDHKKRdso: Refetching age-gated info webpage ERROR: N-aDHKKRdso: YouTube said: Please sign in to view this video. ``` Better error message would have been "this video is private".
deekerman 2026-02-21 00:20:51 -05:00
  • closed this issue
  • added the
    request
    label
Author
Owner

@jaimeMF commented on GitHub (May 5, 2015):

Note, that we are using the message from https://www.youtube.com/embed/N-aDHKKRdso instead of the one in https://www.youtube.com/watch?v=N-aDHKKRdso, because we fallback to the embed page.

@jaimeMF commented on GitHub (May 5, 2015): Note, that we are using the message from https://www.youtube.com/embed/N-aDHKKRdso instead of the one in https://www.youtube.com/watch?v=N-aDHKKRdso, because we fallback to the embed page.
Author
Owner

@nathany commented on GitHub (Sep 15, 2016):

I saw the age-gated error for this private video https://www.youtube.com/watch?v=YaKQDJgF6pw until I specified login information, after which it said it is private.

Is there a way to skip over private videos in a playlist? youtube-dl reached this video while downloading: https://www.youtube.com/playlist?list=PLDWZ5uzn69eyh791ZTkEA9OaTxVpGY8_g

I've also asked the uploader to address the private video contained in the playlist: https://twitter.com/nathany/status/776495956946587648

@nathany commented on GitHub (Sep 15, 2016): I saw the age-gated error for this private video https://www.youtube.com/watch?v=YaKQDJgF6pw until I specified login information, after which it said it is private. Is there a way to skip over private videos in a playlist? youtube-dl reached this video while downloading: https://www.youtube.com/playlist?list=PLDWZ5uzn69eyh791ZTkEA9OaTxVpGY8_g I've also asked the uploader to address the private video contained in the playlist: https://twitter.com/nathany/status/776495956946587648
Author
Owner

@dstftw commented on GitHub (Sep 15, 2016):

@nathany -i.

@dstftw commented on GitHub (Sep 15, 2016): @nathany `-i`.
Author
Owner

@tommcintyre commented on GitHub (Feb 13, 2017):

I had been having this problem for a while, but it turned out that clearing cookies and logging in again fixed it.

@tommcintyre commented on GitHub (Feb 13, 2017): I had been having this problem for a while, but it turned out that clearing cookies and logging in again fixed it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#4627
No description provided.