impronunciable / moviedb

MovieDB API node.js Library
Other
336 stars 70 forks source link

Setting language #46

Open alvaro-octal opened 8 years ago

alvaro-octal commented 8 years ago

Hi,

I was taking a look at the code trying to figure out how could I change the API language (it consist on pass a language parameter with every request), could you add it?.

node that, this works fine.

mdb.searchMovie({ query: 'Alien', language: 'es' }, function(err, res){
    console.log(res);
});

but maybe something like this, would be a bit more clean.

var mdb = require('moviedb')(key, lang)

thanks in advance.

impronunciable commented 8 years ago

@Alvaroctal It will be interesting to pass a setting for default params. I'll take a look about it.

Thanks for adding the issue.

Hedronmx commented 7 years ago

Anything on this? I would love to set a global language param