algolia / youtube-captions-scraper

Fetch youtube user submitted or fallback to auto-generated captions
249 stars 67 forks source link

Fails for `en` and videoId `JueUvj6X3DA` #3

Closed syzer closed 6 years ago

syzer commented 6 years ago

Do you accept PR's ? Because I have a fix and not sure shall I publish fix on npm or PR here.. Ok I did both. BTW Great work guys.

magician11 commented 6 years ago

I just tried this..

const { getSubtitles } = require('youtube-captions-scraper');

getSubtitles({
  videoID: 'JueUvj6X3DA',
  lang: 'en'
}).then(captions => {
  console.log(captions);
});

and it works fine. I see there is a PR. Has it not been merged because this works?

syzer commented 6 years ago

Maybe now it works... 👍 It wasn't the case earlier.

rvizcaino80 commented 6 years ago

Hi, thanks for the great work. Some videos are still not working for english subtitles!

Try this one Uar2hXRrckY. Thanks.

syzer commented 6 years ago

@rvizcaino80 Here's fix for this one : npm i --save youtube-captions-scraper-fix