diff --git a/lib/module.js b/lib/module.js index 4c59b16..098b66c 100644 --- a/lib/module.js +++ b/lib/module.js @@ -5,8 +5,8 @@ module.exports.getDetails = function (detailsId, movieOrTv, tmdbApiKey, language if (movieOrTv == 'movie' || movieOrTv == 'tv') { - const detailURL = config.theMovieDbURL + movieOrTv + '/' + detailsId + '?api_key=' + tmdbApiKey + '&language=' + language; - + const detailURL = config.theMovieDbURL + movieOrTv + '/' + detailsId + '?api_key=' + tmdbApiKey + '&language=' + language + '&append_to_response=videos'; + request(detailURL, (err, resultBody, body) => { if (resultBody != '') { const getJson = JSON.parse(resultBody.body);