fent / fent/node-ytdl-core

Like and unlike properties are null

Open
#1,231 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.7k
Forks
852
PR merge metrics
No merged PRs in 30d

Description

I'm using `getInfo` to get info of youtube video. But now, like and unlike properties are null
```
const id = '7wNb0pHyGuI';
ytdl.getInfo(id).then(info => {
console.log('title:', info.videoDetails.title);
console.log('rating:', info.player_response.videoDetails.averageRating);
console.log('uploaded by:', info.videoDetails.author.name);
const json = JSON.stringify(info, null, 2)
// eslint-disable-next-line max-len
.replace(/(ip(?:=|%3D|\/))((?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|[0-9a-f]{1,4}(?:(?::|%3A)[0-9a-f]{1,4}){7})/ig, '$10.0.0.0');
fs.writeFile('info.json', json, err2 => {
if (err2) throw err2;
});
});
```
![image](https://github.com/fent/node-ytdl-core/assets/41458989/b208f2ba-233c-4940-a60c-ab604fb59fa4)

ytdl-core version: `ytdl-core@4.11.4`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.