albertaparicio / name-to-imdb

Map names of movies/series to IMDB IDs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

name-to-imdb

Map names of movies/series to IMDB IDs

npm install name-to-imdb

Usage: nameToImdb(args, callback)

args - string of the name or object with name/year/type - { name: "The Devil Bat", year: 1940, type: "movie" }

args.strict - don't lookup Google / hintUrl to find an IMDB ID

Example

var nameToImdb = require("name-to-imdb");
nameToImdb({ name: "south park" }, function(err, res, inf) { 
	console.log(res); // prints "tt0121955"
	console.log(inf); // inf contains info on where we matched that name - e.g. locally, or on google
})

Names dataset

The dataset of movie/series names is exported from Stremio's Cinemeta API and generated in names-dataset.json. This has to be updated from time to time.

About

Map names of movies/series to IMDB IDs

License:MIT License


Languages

Language:JavaScript 100.0%