Compute opensubtitles movie hash from a torrent file
MIT License
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();