goodformandspectacle/netflix-o-matic — pull request #4 by equivalentideas (2014-11-09 10:31:03+00:00)
Title: Adds a link to the movie on IMDb

This adds a script that makes a request to the [Open Movie Database](http://www.omdbapi.com/) to get the id of the movie on IMDb and then adds this link to the page.

This was an experiment and learning exercise for me, not pressure to merge it if it doesn't align with you're thinking :)

![screen shot 2014-11-09 at 9 19 30 pm](https://cloud.githubusercontent.com/assets/1239550/4967132/23260488-67fa-11e4-88d2-e58ed6c4362a.png)

It's interesting to use one libraries unique information architecture to explore another catalogue. That's the web for you. I don't have a Netflix account (it's a little tricky to get em in Australia) to follow the prompts there, but I can learn lots about the movie on IMDb.

The link gets added after the page loads as a progressive enhancement to the page. Sometimes the request takes quite a while, which is a drag. If this is considered a nice enhancement, but not core functionality, then it's not too bad if many users miss it. If you decided that this was 'core functionality' it would be better to add some of the OMDb or IMDb data to the database so it loads with the page. My rails isn't great (like my javascript) so that seemed a bit beyond this quick experiment.

I'm trying to learn javascript basics at the moment so the script might not be too awesome/it's probably very verbose. Enjoy.