esperatv-sourcing
v2.0.2
Published
Content sourcing
Downloads
12
Maintainers
Readme
esperatv-sourcing
Sourcing video content for EsperaTV
Installation
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install esperatv-sourcing
API
var Sourcing = require('esperatv-sourcing')
var sourcing = new Sourcing();
var freeSoftwareProvider = function(query) {
if ('ubuntu' === query) return Promise.resolve(['magnet:?xt=urn:btih:5a8ce26e8a19a877d8ccc927fcc18e34e1f5ff67']);
return Promise.resolve([]);
};
sourcing.use(freeSoftwareProvider);
sourcing.forTitle('ubuntu', function(magnets) {
console.log(magnets);
});