name-to-imdb
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -38,3 +38,3 @@ var async = require("async"); | ||
function indexEntry(entry) { | ||
if (entry.year) entry.year = parseInt(entry.year.split("-")[0]); // first year for series | ||
if (entry.year) entry.year = parseInt(entry.year.toString().split("-")[0]); // first year for series | ||
var n = simplifyName(entry.name); | ||
@@ -78,3 +78,3 @@ if (!meta[n]) meta[n] = []; | ||
if (err) return cb(err); | ||
var match = body && body.match(new RegExp("\/title\/(tt[0-9]+)\/")); // Match IMDB Id from the whole body | ||
var match = body && body.match(new RegExp("\/title\/(tt[0-9]+)")); // Match IMDB Id from the whole body | ||
var id = match && match[1]; | ||
@@ -81,0 +81,0 @@ cb(null, id, { match: task.hintUrl }); |
{ | ||
"name": "name-to-imdb", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "Finds IMDB ID by movie/series name (fuzzily) and optionally year and type", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
8101