Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.03 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.03 KB

XO code style Build Status

yifysubtitles

Download and convert subtitles in VTT format for YTS movies

Install

$ npm i yifysubtitles-to-gs --save

Usage

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'
  },
  ...
]
*/

License

MIT © Mrdotb