Download and convert subtitles in VTT format for YTS movies
$ npm i yifysubtitles-to-gs --save
const yifysubtitles2GS = require('yifysubtitles-to-gs');
const saveSubtitles = await yifysubtitles2GS({storage: 'storage', bucketName: 'bucketName'});
const results = await saveSubtitles('tt1156398', {
langs: ['en', 'vi'],
format: 'vtt' // Default: vtt (Only support vtt format)
})
console.log(results)
/*
[
{
lang: 'english',
langShort: 'en',
path: 'https://[bucket_name].storage.googleapis.com/[file_name]',
fileName: 'Zombieland.2009.720p.BrRip.x264-YIFY.vtt'
},
...
]
*/
MIT © Mrdotb