os-torrent-hash

Compute opensubtitles movie hash from a torrent file

MIT License

Downloads
13
Stars
5
Committers
2

os-torrent-hash

Compute opensubtitles movie hash from a torrent file, and a torrent-stream engine Example:

computeMovieHash(torrentUrl, engine) // engine is a torrent-stream engine
    .then(function (res) {
        res.movieHash; // the movie hash
        res.fileSize;  // the file size
        res.fileName;  // the file name
    })
    .catch(function (error) {
        // Handle any error from all above steps
    })
    .done();