video trailer add result

This commit is contained in:
Wise Colt
2020-03-31 21:46:38 +03:00
parent 44a03660e0
commit ba17759f90

View File

@@ -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);