fent / node-ytdl-core

YouTube video downloader in javascript.
MIT License
4.51k stars 799 forks source link

Age confirm issue #19

Closed icaliman closed 9 years ago

icaliman commented 9 years ago

I got this error after a while:

500 Error: Error 150: Sign in to confirm your age
 at /var/nodejs/youtube/node_modules/ytdl-core/lib/info.js:47:16
 at Request._callback (/var/nodejs/youtube/node_modules/ytdl-core/lib/crequest.js:9:5)
 at Request.self.callback
fent commented 9 years ago

Do you have a video that gives this error? Does it only happen after a while because it looks like one of those messages you get for NSFW videos.

jbergknoff commented 9 years ago

Here's an example of a video with the issue: https://www.youtube.com/watch?v=otfd2UTrP_Q

fent commented 9 years ago

Can't find a way to scrape the video info

tried these pages https://www.youtube.com/embed/otfd2UTrP_Q http://www.youtube.com/get_video_info?hl=en_US&el=detailpage&video_id=otfd2UTrP_Q

The other option can be having the user login, by either giving some sort of credentials, or a cookie.

jbergknoff commented 9 years ago

It looks like https://github.com/rg3/youtube-dl has a workaround for the age gating that doesn't involve logging in: https://github.com/rg3/youtube-dl/blob/98998cded6e179b35055177f75fc921d99ee5938/youtube_dl/extractor/youtube.py#L828-L845

andrewrk commented 9 years ago

Another example: https://www.youtube.com/watch?v=rIqCiJKWx9I

fent commented 9 years ago

Thanks @jbergknoff

andrewrk commented 9 years ago

Nice fix! I'm really happy to depend on this module.

fent commented 9 years ago

Glad to hear :)

icaliman commented 9 years ago

Many thanks! :)

ldenoue commented 10 months ago

@fent I still get this error today e.g. https://www.youtube.com/watch?v=Qxx14RCxblg Is it possible to fix again?