- Add the package
tvdb
to yoursmart.json
file. - Run
mrt
meteor-tvdb currently also requires the node-tvdb module to be installed in the server side of your meteor app.
First off, get an API key from thetvdb. Without an API key you won't be able to do anything with this library.
Client and server side:
Add Meteor.TVDB() to your startup function.
Client side:
Add {{tvdbStatus}} to a template and it should give you a nice buttor to configure the rest.
All meteor-tvdb API calls requires a return function, that takes two parameters, error
and result
.
Meteor.TVDB().getLangauges(function(error, languages) {
console.log(languages);
});
// Also available
Meteor.TVDB().getMirrors(donefunc)
Meteor.TVDB().getServerTime(donefunc)
Meteor.TVDB().findTvShow(name, donefunc)