New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

yifysubtitles

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yifysubtitles

A simple wrapper to download subtitles from the yifysubtitles website.

  • 2.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

XO code style Build Status

yifysubtitles

Download and convert subtitles in VTT format for YTS movies

Install

$ npm i yifysubtitles --save

Or using yarn

$ yarn add yifysubtitles

Usage

const yifysubtitles = require('yifysubtitles');

const results = await yifysubtitles('tt1156398', {
  path: '/tmp',
  langs: ['en', 'fr', 'zh']
});
console.log(results)
/*
[
  {
    lang: 'english',
    langShort: 'en',
    path: '/tmp/Zombieland.2009.720p.BrRip.x264-YIFY.vtt',
    fileName: 'Zombieland.2009.720p.BrRip.x264-YIFY.vtt'
  },
  ...
]
*/

API

yifysubtitles(imdbId, [options])

Returns an Array of the downloaded subtitles.

imdbId

Type: String

options

Type: Object

langs

Type: Array
Default: ['en']
Array of the langs wanted.

path

Type: String
Default: __dirname
The path where the subtitles are going to be stored.

format

Type: String
Default: vtt
The format of subtitles. ['srt', 'vtt']

concurrency

Type: number
Default: Infinity
Minimum: 1 Download multiples subtitles concurency.

License

MIT © Mrdotb

Keywords

FAQs

Package last updated on 30 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc