From ba17759f90bb83a9c44e3051d6a9941a4578b328 Mon Sep 17 00:00:00 2001 From: Wise Colt Date: Tue, 31 Mar 2020 21:46:38 +0300 Subject: [PATCH] video trailer add result --- lib/module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);