IMDB movie fetcher version 4

Update : Released 4.1 with cast/director/rating code update.

I am happy to announce the version 4 of IMDB movie fetcher. This release contains two new features and many bug fixes. This release adds colored output and “similar title” suggestions.

Installation

Arch Linux

Arch Linux aur package is here . Download it and follow below steps

wget [--right click the above here link and copy paste the url here--]

tar zxvf imdbmoviefetcher.tar.gz

cd imdbmoviefetcher

makepkg -s

sudo pacman -U imdbmoviefetcher-4.0-1-any.pkg.tar.xz

Other distros

At present there is no package available for other distros. You can download and install using the installer provided with the package.

wget [--right click the above download link and copy paste the url here--]

tar zxvf imdbmoviefetcher-v4.0.tar.gz

cd imdbmoviefetcher

su -c “./installer.sh”

If you are using sudo to get root privilege, use

sudo ./installer.sh

Usage

This application supports three options

imdb-mf.sh [option] [arg]
Options :

-v : gives the version of the script

-h : shows the help page

-t [arg] : Pass the movie title as argument. It is recommended to quote the name as shown in the example below
Example :    imdb-mf.sh -t “startship troopers”

Configuration

The new version comes with a new configuration file, using that you can customize the colored output. The global configuration file will be located at /etc/imdb-mf.conf. You can create a .imdb-mf.conf in your home directory to override the values in global configuration file. I will explain the parameters and their values in the configuration file. It will looks like :

INEEDCOLOR=1

TITLECOLOR=Red

DATACOLOR=Green

LINKCOLOR=Cyan

Parameters and values

There are 4 parameters supported by the configuration file. You can see them above. If you want colored output, set INEEDCOLOR to 1, or set that to 0, if you don’t want a colored output. The other three parameters controls the color of different section of the output. You can change the color by changing their values. Supported values are

Black, Red, Green, Yellow, Blue, Purple, Cyan, Gray, DGray, DRed, DGreen, DYellow, DBlue, DPurple, DCyan, White

Note: Values are case sensitive

The default setting will give red color for titles, green for data and cyan for link. It will looks like.

screen shot

You can always change the values to one specified above to change the color.

Changing the values in configuration file

There are two methods

1. You can edit the global configuration file at /etc/imdb-mf.conf

sudo vi /etc/imdb-mf.conf

or

su -c “vi /etc/imdb-mf.conf”

2. You can copy the file to your home directory and change that.

cp /etc/imdb-mf.conf $HOME/.imdb-mf.conf && vi ~/.imdb-mf.conf

Try it and leave your feedback @ http://www.mutexes.org/imdb-movie-fetcher/

Share