Node Opensubtitles API to make search for your subtitles in OpenSubtitles.org!
opensubtitles.login()
.then(function(token){
// make magic! =)
}, function(err){
// Error login =(
});
opensubtitles.logout(token)
.then(function(res){
// Bye bye magic! =/
}, function(err){
// Error logout =(
});
opensubtitles.search(token, {
q: {
'sublanguageid': 'pob',
'query': 'The Walking Dead',
'tag': ''
},
limit: 1 // max limit: 500
})
.then(function(result){
// make magic! =)
}, function(err){
// Error search =(
});
opensubtitles.searchByFile()
.then(function(result){
}, function(err){
});
opensubtitles.searchByTag()
.then(function(result){
}, function(err){
});
opensubtitles.searchEpisode()
.then(function(result){
}, function(err){
});
coming soon