From e9fcb1da91558afb8de5bc8782baee3ae1a174ac Mon Sep 17 00:00:00 2001 From: chattes Date: Mon, 8 Aug 2016 17:59:37 +0530 Subject: [PATCH] Added DVD and Box Office Information to OMDB API --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index e27310a..5ed749e 100644 --- a/index.js +++ b/index.js @@ -244,6 +244,11 @@ module.exports.get = function (show, options, done) { // Cast the API's release date as a native JavaScript Date type. released: movie.Released ? new Date(movie.Released) : null, + + //Added DVD and Box Office Information to returned object + dvd: movie.DVD ? new Date(movie.DVD) : null, + boxOffice: movie.BoxOffice ? +movie.BoxOffice : null, + // Return runtime as minutes casted as a Number instead of an // arbitrary string.