Greasy Fork is available in English.
Utility library for the Internet Movie Database. Provides an API for grabbing info from IMDb.com
此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/390115/733074/IMDb%20Utility%20Library%20%28API%29.js
getImdbIdFromTitle(title[, year]])
title: title of the movie or show to search for
year: year it was published (optional)
getImdbInfoFromId(id):
id: RottenTomatoes ID (e.g. "tt0091080")
title: Release title
year: Release year according to IMDb
description: IMDb's description of the title
rating: IMDb rating (e.g. 6.9)
votes: Number of ratings counted
metascore: MetaCritic score according to IMDb
popularity: IMDbMeter popularity
dateFetched: Date object of when data was fetched (now)
getRtInfoFromTitle(title[, year]])
title: title of the movie or show to search for
tv: is it a TV show? (default: false)
year: year it was published (optional)
getImdbInfoFromTitle('friday the 13th', 1986);
Returns:
{ "id": "tt0091080", "title": "Friday the 13th Part VI: Jason Lives", "year": "1986", "description": "Tommy Jarvis goes to the graveyard to get rid of Jason Voorhees' body once and for all, but inadvertently brings him back to life instead. The newly revived killer once again seeks revenge, and Tommy may be the only one who can defeat him.", "rating": "6.0", "votes": "34,148", "metascore": "30", "popularity": "4,616", "fetched": "2019-09-14T05:44:46.498Z" }