philbot9 / youtube-info

Fetch meta information about YouTube videos
ISC License
43 stars 20 forks source link

Doesn`t work after update to 1.3.2 from 1.3.1 #12

Closed aulianov closed 5 years ago

aulianov commented 5 years ago

subj

philbot9 commented 5 years ago

Hi there,

Can you please provide more information?

What are you trying to do? Is there some kind of an error message?

Thanks.

aulianov commented 5 years ago

$ npm install youtube-info

var fetchVideoInfo = require('youtube-info'); fetchVideoInfo({videoId: 'Rb0UmrCXxVA', language: 'ru'}, function (err, videoInfo) { if (err) throw new Error(err); console.log(videoInfo); });

image

aulianov commented 5 years ago

fetchVideoInfo('Rb0UmrCXxVA', function (err, videoInfo) { if (err) throw new Error(err); console.log(videoInfo); }); ==> worked

fetchVideoInfo('Rb0UmrCXxVA', {language: 'ru'}, function (err, videoInfo) { if (err) throw new Error(err); console.log(videoInfo); }); ==> not worked

philbot9 commented 5 years ago

@aulianov I see, the { langauge: 'ru' } parameter is not supported in version 1.3.2, yet. It will be in the next release (currently in progress).