Open McPolemic opened 6 years ago
Any particular reason you suggest IMDb? In the past, I've pulled data for Plex from TheMovieDb and I've seen others recommend OMDB (Open Move Database). While TMDB requires an API key, OMDB doesn't and they both seem to have slightly better responses [that don't use single char keys]
IMDB was the default. This should've probably just been "Get movie metadata".
It looks like OMDB not only requires an API key but also doesn't provide movie posters unless you're a patron of theirs. Posters is probably the feature in this for me because it makes it easier to skim.
I was also attracted to the idea of using IMDB's ID as a canonical representation of a movie because, in theory, that would make it easier to interact with other services that store that ID (like having Plex automatically open and start watching a movie). That's all a bit of a pipe dream, though.
This could probably be done via JS, but I don't really like JS.
IMDB has an autocomplete API that is called without authentication. It can give us the following fields with little effort:
After inputting a title, we could have an interstitial that asks if any of the following movies are what we meant, rendering thumbnails of the poster, the title, and the year. They can also skip and just enter in what was entered.
Sample Queries
Sample Response (Arrival)
Note that it returns JSONP, so we'd have to remove the wrapping function call
Formatted (and without the JSONP garbage)