name-to-imdb
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "name-to-imdb", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Finds IMDB ID by movie/series name (fuzzily) and optionally year and type", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -46,3 +46,3 @@ var fetch = require("node-fetch") | ||
var m = matches.find(function(match) { | ||
if (!match.type === query.type) return false | ||
if (!(match.type === query.type)) return false | ||
@@ -49,0 +49,0 @@ if (query.type === 'movie' && query.hasOwnProperty('year')) |
@@ -12,3 +12,3 @@ # name-to-imdb | ||
**args.providers** - an array of providers to search in; possible options are ``metadata`` and ``imdb``; default is ``["metadata", "imdb"]`` | ||
**args.providers** - an array of providers to search in; possible options are ``metadata`` and ``imdbFind``; default is ``["metadata", "imdbFind"]`` | ||
@@ -20,3 +20,3 @@ ## Example | ||
console.log(res); // prints "tt0121955" | ||
console.log(inf); // inf contains info on where we matched that name - e.g. locally, or on google | ||
console.log(inf); // inf contains info on where we matched that name - e.g. metadata, or on imdb | ||
}) | ||
@@ -23,0 +23,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22456