Closed SteeledSlagle13 closed 4 years ago
I don't think this is possible, since there's no thumbnail when you opening the watch page, i will double check again.
ah that makes sense. I appreciate the speedy response!!!
i think i can work around it by
scrapeYt.search("4itm0SRxAro", {type: "video"}).then(videos => {
console.log(videos[0]);
});
still testing but i looks like the search is pulling up the video by the id ill touch base again in a few minutes
From my experience, searching with videoID isn't 100% accurate, sometimes it gives different result
looks like if i put the id in the form of the watch url i can get it with search!!!!
just putting the id doesnt return videos that have less than a certain amount of views from what it looks like
'https://www.youtube.com/watch?v=njTMhgn96H0' brings up the video while 'njTMhgn96H0'
brings up some random videos
gotta keep finding videos with less that 1k views to see what the limit is
hmmmm might not be 100% based on view count.... i think that is a big factor but it could also relate to the tags/category of the video
but using the link over the id has been working
its not an issue XD especially on your end... if the watch page doesnt have the thumbnail then it doesnt have it so eh.
ill keep posting my findings with the search here
i think it might have thumbnail, when you first opened the watch page before the video starts loading, i think it's showing thumbnail first, i will check later.
sounds good ty
Turns out i was wrong, indeed there is a thumbnail. Not gonna publish any update to NPM right now, going to see if i can get more useful information from getVideo
and other functions, if you have any suggestion for additional information to add, please send them here!
will do! thank you so much!
Added on @1.2.4!
hey would it be possible to get the url of the video thumbnail on the getVideo() like the search()