New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

sub-downloader

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sub-downloader

Painless subtitles downloader

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

subdownloader

Painless subtitle downloader

Downloading subtitle for one or more files is just a command away. It can get any better then this.

NPM

Installation

npm install -g sub-downloader

How to use

  • Navigate to the folder in which you have the file for which you want to download subtitles through command prompt.
  • Execute subdownload command and let all the magic happens.
  • sd is a shorthand command. You can use sd instead of subdownload

Options

  • To download subtitles for all the movies in a folder execute.

    > subdownload

  • To download subtitles for single movie execute.

    > subdownload --listLangs

  • To list available languages for subtitle.

    > subdownload "Movie Name"

  • To download subtitles for more then one movie but not all movies in a folder execute.

    > subdownload "Movie Name" --lang=fr

  • To download subtitles of specific language.

    > subdownload "Movie 1" "Movie 2" .... "Movie n"

  • To enable deep download means to download subtitles for files in a folder as well as subfolders.

    > subdownload --deep

  • Use > subdownload --help for listing all the options available.

API

var subd = require('subdownloader');

//filesArray - is the array of path to the files for which
//you want to download the subtitles
//obj - in return you will return an object having success and failed files array
subd.subdownload(filesArray).then(function(obj){
	console.log(obj);
	//=> { success: [successfile1,successfile2], failed: [failedfile1]}
});

Note : This module uses SubDB to download subtitles.

License

MIT © Yoginth

Keywords

cli

FAQs

Package last updated on 15 Oct 2017

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