YoutubeExplode: Unable to process age-restricted video

I found a problem that should be solved (V4.0 updated Dec. 2017) but its still there: The link to the video will cause an exception with message: {"Video [yLnmR6PXzGY] is not available and cannot be processed.\r\nError code: 150\r\nError reason: Sign in to confirm your age"} https://www.youtube.com/watch?v=yLnmR6PXzGY

Any solution for that ? - Or / How can I give the credentials of my “logged in yt-user” where I confirmed my age ? some example code would be nice… so I could solve myself … I think. Thanx in advanced !

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 23 (12 by maintainers)

Most upvoted comments

Gonna wait 4 more days and close this if we’re still unable to reproduce this.

It seems that youtube can read info for restricted videos, but needs to pass a certain url as eurl parameter with the https://youtube.googleapis.com/v/<videoid> data. Nothing more. I just use the same words that youtube-dl author used for this.

Here’s the link to the code in youtube-dl repo: https://github.com/rg3/youtube-dl/blob/98998cded6e179b35055177f75fc921d99ee5938/youtube_dl/extractor/youtube.py#L828-L845

Indeed it would be 😄 … I only found out about this wonder YouTubeExplode a few weeks ago and only started using it recently. Don’t know much about Http stuff in C# yet sadly 😦

Busy messing around with my own WPF app now for video/music downloading… then after maybe I’ll give it a try 😛

And a great pull request too 😛

That would make for a nifty sample project 😛