node-ytdl-core icon indicating copy to clipboard operation
node-ytdl-core copied to clipboard

Like and unlike properties are null

Open namlq93 opened this issue 2 years ago • 3 comments

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

ytdl-core version: [email protected]

namlq93 avatar Jun 15 '23 11:06 namlq93

Check https://github.com/fent/node-ytdl-core/pull/1152

eugabrielsilva avatar Jun 18 '23 15:06 eugabrielsilva

also, dislikes will stay null for the foreseeable future

TimeForANinja avatar Jul 14 '23 05:07 TimeForANinja

is there a solution for this one?

solcabz avatar Jan 08 '24 23:01 solcabz