video trailer add result
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports.getDetails = function (detailsId, movieOrTv, tmdbApiKey, language
|
|||||||
|
|
||||||
if (movieOrTv == 'movie' || movieOrTv == 'tv') {
|
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) => {
|
request(detailURL, (err, resultBody, body) => {
|
||||||
if (resultBody != '') {
|
if (resultBody != '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user