Comparing version 0.4.0 to 1.0.0
{ | ||
"name": "imdbtr", | ||
"version": "0.4.0", | ||
"version": "1.0.0", | ||
"description": "IMDB on terminal", | ||
@@ -26,6 +26,6 @@ "license": "MIT", | ||
"chalk": "^1.1.3", | ||
"figures": "^1.7.0", | ||
"figures": "^2.0.0", | ||
"got": "^6.3.0", | ||
"minimist": "^1.2.0", | ||
"ora": "^0.2.3" | ||
"ora": "^0.3.0" | ||
}, | ||
@@ -38,5 +38,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"ava": "^0.15.2", | ||
"ava": "^0.16.0", | ||
"sinon": "^1.17.4", | ||
"xo": "^0.16.0" | ||
"xo": "^0.17.0" | ||
}, | ||
@@ -43,0 +43,0 @@ "bin": { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const provider = 'http://www.omdbapi.com/?'; | ||
const provider = 'http://www.theimdbapi.org/api/find/movie?'; | ||
const headers = { | ||
@@ -19,6 +19,6 @@ 'user-agent': 'https://www.github.com/fernahh/imdbtr' | ||
const movie = got(`${provider}t=${normalizedName}`, {headers, json: true}) | ||
const movie = got(`${provider}title=${normalizedName}`, {headers, json: true}) | ||
.then(response => { | ||
const result = response.body; | ||
return result.Response === 'False' ? false : result; | ||
return result === null ? false : result[0]; | ||
}) | ||
@@ -25,0 +25,0 @@ .catch(err => { |
@@ -23,11 +23,12 @@ 'use strict'; | ||
const movieRes = ` | ||
${chalk.black.bgYellow.bold(result.Title)} (${result.Year}) on IMDb: | ||
${chalk.black.bgYellow.bold(result.title)} (${result.year}) on IMDb: | ||
${chalk.yellow(`${figures.star} ${result.imdbRating}`)} | ||
${chalk.yellow(`${figures.star} ${result.rating}`)} | ||
Director: ... ${result.Director} | ||
Writer: ..... ${result.Writer} | ||
Actors: ..... ${result.Actors} | ||
Genre: ...... ${chalk.italic(result.Genre)} | ||
Plot: ....... ${result.Plot} | ||
Duration: .... ${result.length} min | ||
Director: .... ${result.director} | ||
Writer: ...... ${result.writers.join(', ')} | ||
Stars: ....... ${result.stars.join(', ')} | ||
Genre: ....... ${chalk.italic(result.genre.join(', '))} | ||
Storyline: ... ${result.storyline} | ||
`; | ||
@@ -34,0 +35,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
19909
9
77
38
+ Addedcli-spinners@0.2.0(transitive)
+ Addedfigures@2.0.0(transitive)
+ Addedlog-symbols@1.0.2(transitive)
+ Addedora@0.3.0(transitive)
- Removedcli-spinners@0.1.2(transitive)
- Removedfigures@1.7.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedora@0.2.3(transitive)
Updatedfigures@^2.0.0
Updatedora@^0.3.0