Bash Script – Automatic IMDb Genre & Artwork For Movie Files

I wrote a little bash script on the weekend. Concept is simple, it takes a file name and directory as command line arguments, then searches IMDb for the title, returning the artwork (600x600px) and the genre. Script then moves the file to a given location under the “genre” folder. For example I have a folder setup with an incrontab entry that watches the folder for anything moved into it. When incron detects a file, the script is called with the monitored directory and filename as arguments. The movie and corresponding art is moved to my NAS “movies” folder, under the correct genre. Anyway, script is here (it serves my purpose, you will probably want to edit it for your own use):

Change the $image_name extension to whatever file extension you want. Mine is set as .tbn for xbmc to recognize it as a thumbnail.

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Ping.fm Post to StumbleUpon

0 Responses to “Bash Script – Automatic IMDb Genre & Artwork For Movie Files”


  • No Comments

Leave a Reply

About Me

Hi. I'm Matt Newham, 23 years old. I'm a network security engineer, specializing in Intrusion Detection.

My Skype Status

Post Archive

  • -2010 (12)
  • +2009 (7)

Dynamic Tag Cloud

IDS K2 powershell Rants Skype Snipt Snorby Snort Twonky Ubuntu Wordpress General (14)
Reviews (2)
Technical Articles (3)

WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.