bug fix and add promise feature
This commit is contained in:
@@ -6,7 +6,7 @@ module.exports.getDetails = function (detailsId, movieOrTv, tmdbApiKey, cb) {
|
||||
if (movieOrTv == 'movie' || movieOrTv == 'tv') {
|
||||
|
||||
const detailURL = config.theMovieDbURL + movieOrTv + '/' + detailsId + '?api_key=' + tmdbApiKey + '&language=en-US';
|
||||
|
||||
|
||||
request(detailURL, (err, resultBody, body) => {
|
||||
|
||||
const getJson = JSON.parse(resultBody.body);
|
||||
|
||||
Reference in New Issue
Block a user