Skip to content
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

Age restricted YouTube videos are not handled properly #245

Open
cablehub opened this issue Jan 19, 2025 · 1 comment
Open

Age restricted YouTube videos are not handled properly #245

cablehub opened this issue Jan 19, 2025 · 1 comment

Comments

@cablehub
Copy link

cablehub commented Jan 19, 2025

Version running
v3.2.3

Describe the bug
When trying to download age-restricted YouTube videos, the download either finishes immediately with 0 bytes -or- the web-ui freezes up if format selection is enabled (i.e. web-ui is darkened + endless spinner).

To Reproduce
Steps to reproduce the behavior:

  1. Add this video to download queue: https://www.youtube.com/watch?v=ZsUAK9cWIJ8

-or-

  1. Enable format selection in settings
  2. Add this video to download queue: https://www.youtube.com/watch?v=ZsUAK9cWIJ8

Expected behavior
yt-dlp Web UI should throw an error, informing the user that the video is age-restricted and thus cannot be downloaded.

Additional context
I also tried adding Netscape Cookies for a YT account which has the restriction lifted, but that did not change the behavior.
I'd assume the same applies to country-restricted YouTube videos, couldn't find one to test on short notice, though.

@cablehub
Copy link
Author

cablehub commented Jan 19, 2025

Might be related to this issue: yt-dlp/yt-dlp#11868 (comment)

The download of the video in question works manually when using this command line:
yt-dlp --cookies-from-browser <BROWSER> --extractor-args "youtube:player-client=tv" <URL>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant