node-legendastv
v0.0.3
Published
Node.js client for legendas.tv
Downloads
5
Maintainers
Readme
node-legendastv
Node.js client for popular brazilian subtitle site legendas.tv.
Install
$ npm install node-legendastv
API
var legendastv = require('node-legendastv')
search(termo, opts, cb)
termo
a string used for find series. This is required. Ex: "game of thrones", "the mentalist S06E01", etc.opts
an object with the following arguments:idioma
a integer indicating the subtitle language. Could be one of the following:1
Portuguese-BR2
English3
Spanish4
French5
German6
Japanese7
Danish8
Norwegian9
Swedish10
Portuguese-PT11
Arabic12
Czech13
Chinese14
Korean15
Bulgarian16
Italian17
Polish
tipo_legenda
a string indicating the subtitle type. Could be one of the following:d
Destaquep
Pack
proxy
a string representing a HTTP proxy to be used.
Example
var legendastv = require('node-legendastv');
legendastv.search('game of thrones S04E01', function(err, results) {
if (err) {
console.log(err);
} else {
console.log(results);
}
});
License
MIT