nileshdas / easySubtitles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

    > subtitle

  • To download subtitles for single movie execute.

    > subtitle --listLangs

  • To list available languages for subtitle.

    > subtitle "Movie Name"

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

    > subtitle "Movie Name" --lang=fr

  • To download subtitles of specific language.

    > subtitle "Movie 1" "Movie 2" .... "Movie n"

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

    > subtitle --deep

  • Use > subtitle --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

About

License:MIT License


Languages

Language:JavaScript 100.0%