philbot9 / youtube-info

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

Video does not exist every few tries #36

Open SteeledSlagle13 opened 4 years ago

SteeledSlagle13 commented 4 years ago

Im getting a Unhandled rejection Error: Video does not exist error every few tries with

songMatch[1] is 'https://www.youtube.com/watch?v=5TnhnxJghsg'

fetchVideoInfo(songMatch[1]).then((videoInfo) => {
    //stuff in here
});

image

philbot9 commented 4 years ago

Hi there,

The expected parameter is the video ID, not the video URL.

Please try with fetchVideoInfo('5TnhnxJghsg').

SteeledSlagle13 commented 4 years ago

hey sorry bad description songMatch[1] is the id = 5TnhnxJghsg

NafiAF commented 4 years ago

This also happens to me, even when I am fetching the video information with the ID. Take a look at https://i.nafi.wtf/mmtom.png

GEN0C1DE commented 4 years ago

Still an occurring issue. https://gyazo.com/7c0f72a8aa1172a712b5f4e7ac2c8292