YouTube.js icon indicating copy to clipboard operation
YouTube.js copied to clipboard

How to get descriptions from videos?

Open gbarton opened this issue 1 year ago • 1 comments

Question

Which api call will get me the descriptions for the videos found underneath the videos while they are being played?

Calling getBasicInfo(id,'WEB') I found VideoInfo.basic_info.short_description, but that does not seem to be it.

Any ideas?

Other details

image

Checklist

  • [X] I am running the latest version.
  • [X] I checked the documentation and found no answer.
  • [X] I have searched the existing issues and made sure this is not a duplicate.
  • [X] I have provided sufficient information.

gbarton avatar Jun 25 '24 19:06 gbarton

Try video.getInfo(), this is a little slower but gives more information than getBasicInfo(). Also, specifying the Web client isn't needed since that's the default.

sgebr01 avatar Jun 26 '24 21:06 sgebr01

Ahh that does it thank you!

gbarton avatar Jul 02 '24 14:07 gbarton