Friday, April 16, 2010

IMDB Lookup from Nautilus in Ubuntu

This is how you implement a Lookup IMDB right click menu action for a movie file visible in Nautilus. It's really easy using Nautilus Actions!

First install nautilus-actions
sudo apt-get install nautilus-actions
Now create the script to launch the browser given a filename.
sudo wget -N -P /usr/bin http://moten-util.googlecode.com/svn/ubuntu/trunk/lookup-imdb/lookup-imdb sudo chmod 755 /usr/bin/lookup-imdb
Choose System - Preferences - Nautilus Actions Configuration - Add.
Set values in Action tab as below
Label: Lookup IMDB
Path: lookup-imdb
Parameters: %b
Logout and back in again and you should be ready to go.

Note: if you find that your default browser is not being opened by the x-www-browser command then select your default browser by
sudo update-alternatives --config x-www-browser
As of 5 May 2013 this works fine in Ubuntu 12.04 with Unity.