Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Node.js API library to query opensubtitles.org
JavaScript Python
branch: master

0.0.3

latest commit aaba982efc
@ka2er authored
Failed to load latest commit information.
lib fix memory leak
test fix test #checkMovieHash
.gitignore Initial commit
.travis.yml initial CI travis support
README.md add build status to README file
package.json 0.0.3
sample.py hashing works

README.md

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

Something went wrong with that request. Please try again.