📝 Painless subtitle downloader
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit 6d7f23a Oct 2, 2017
Permalink
Failed to load latest commit information.
demo minor tweaks Sep 22, 2015
test minor tweaks Sep 30, 2015
.editorconfig minor tweaks Aug 24, 2015
.gitignore Initial Commit Aug 20, 2015
.jshintrc Initial Commit Aug 20, 2015
.travis.yml init Sep 22, 2015
README.md Merge pull request #11 from beatfreaker/list-langs Oct 2, 2017
cli.js Merge pull request #8 from codealchemist/fix-75 Oct 2, 2017
index.js Add --listLangs option Oct 1, 2017
license Initial Commit Aug 14, 2015
package.json code refactor Feb 13, 2016

README.md

subdownloader

Painless subtitle downloader

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

Installation

npm install -g subdownloader

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]}
});

Demo

Demo image

Note : This module uses SubDB to download subtitles.

License

MIT © Chintan Radia