Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

name-to-imdb

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

name-to-imdb - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

4

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc