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

getInfo return empty formats #791

Closed
c0b41 opened this issue Nov 27, 2020 · 6 comments
Closed

getInfo return empty formats #791

c0b41 opened this issue Nov 27, 2020 · 6 comments

Comments

@c0b41
Copy link

c0b41 commented Nov 27, 2020

(async () => {
 try {
  let info = await ytdl.getInfo(`Jma5p80pLgU`)
  console.log(info.formats)
 } catch (error) {
   console.log(error)
 }
})()

ytdl-core version: 4.1.0

@modscleo4
Copy link

also happening with /watch?v=VV2y21GjZ8E

@fent
Copy link
Owner

fent commented Nov 28, 2020

also happening with /watch?v=VV2y21GjZ8E

can reproduce with this

@modscleo4
Copy link

The problem with my video was it is age restricted, and YouTube does not allow playback of age restricted videos on /embed

/watch?v=Jma5p80pLgU is region restricted, it plays fine here in Brazil, but not in United States

@fent
Copy link
Owner

fent commented Nov 28, 2020

The problem with my video was it is age restricted, and YouTube does not allow playback of age restricted videos on /embed

it does not? this is new, it previously did

@modscleo4
Copy link

Now it blocks embed playback

"Viewers who click on an age-restricted video on another website, such as an embedded player, will be redirected to YouTube, where they will only be able to view the content when signed-in and over 18." (https://support.google.com/youtube/answer/2802167?hl=en)

@fent
Copy link
Owner

fent commented Nov 29, 2020

welp, i guess now people will have to use cookies for those :/

@fent fent closed this as completed in c0f7e41 Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants