video trailer add result
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user