SuspiciousLookingOwl / scrape-yt

Simple lib to scrape information from youtube such as search results, video information, related videos, playlist information and up next video
https://www.npmjs.com/package/scrape-yt
MIT License
9 stars 3 forks source link

Enhancement : Duration on the Video object from a video search #8

Closed SteeledSlagle13 closed 4 years ago

SteeledSlagle13 commented 4 years ago

Would it be possible to return the duration when using .getVideo(videoID)

I am currently chaining calls to get the duration because the .getVideo doesnt grab the duration

scrapeYt.getVideo(videoId).then((videoMain: Video) => {
                            scrapeYt.search(videoMain.title).then((videoInfos: Video[]) => {
...

would be awesome if this is possible!!!!

SuspiciousLookingOwl commented 4 years ago

Added on d63fb432158ae4093df442791ccf86e40d0d60f0! Upgrade to version 1.2.1 😄

SteeledSlagle13 commented 4 years ago

You’re amazing!!! Thank you! 😁