opensubtitles

API to interact with opensubtitles services

npm install opensubtitles
4 downloads in the last day
14 downloads in the last week
32 downloads in the last month

node-opensubtitles-api

Node.js API library to query opensubtitles.org

build status

Usage

The lib get hashing function :

var OS = require("opensubtitles");
var os = new OS();
os.computeHash('./test/breakdance.avi', function(err, size){
    if (err) return;

    os.checkMovieHash([size], function(err, res) {
        if(err) return;

        console.log(res);
    })
});

And it also bind all XML-RPC methods :

os.api.LogIn(function(err, res){
    console.log(res);
},user, pass, lang, ua);

Tests

simply run :

$ mocha

About

Subtitles service powered by www.OpenSubtitles.org

npm loves you