yifysubtitles-to-gs

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i yifysubtitles-to-gs

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

10.7 kB

Total Files

9

Last publish

Collaborators

  • thanhdinh98