bakapear / ytt

YouTubeTools
MIT License
6 stars 1 forks source link

Error on ?some? videos with method ytt.video(video_id) #10

Closed Erfesto closed 2 years ago

Erfesto commented 2 years ago

For example, videos video1, video2 gives error

Checking video with await ytt.valid(video_id) gives true Searching videos with await ytt.query('search text', { filter: 'video', num: 20 }) and finding that video is ok

But when trying to use await ytt.video(video_id), it gives error TypeError: Cannot read property 'accessibilityData' of undefined at Object.makeVideoObject (/project/node_modules/ytt/src/lib/builder.js:107:125) at Object.module.exports [as video] (/project/node_modules/ytt/src/video.js:9:23)

bakapear commented 2 years ago

Thanks for reporting the issue!

The endpoint for dislikes is no longer available so I removed it entirely from the video object in f7fa7e8407ece723217e405b2ee9c2865cc55cbe, that should fix it.