Added more methods for tv shows.

This commit is contained in:
melonboy
2014-03-12 18:57:59 +01:00
parent 070e577e18
commit 547d0f8fd6
2 changed files with 9 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ Object.keys(endpoints.methods).forEach(function(method){
var execMethod = function(type, params, endpoint, fn){
params = params || {};
endpoint = endpoint.replace(':id', params.id);
endpoint = endpoint.replace(':id', params.id).replace(':season_number', params.season_number).replace(':episode_number', params.episode_number);
type = type.toUpperCase();
var req = request(type, endpoints.base_url + endpoint)