PSXC-IMDB
---------

CHANGELOG:
----------
- v0.1 - Apr. 4th, 2003 - first official release.

DESCRIPTION:
------------
This script will (like a great deal of other scripts) read the imdb-url in a
.nfo and paste parts of what it finds in the IRC channel. So, what's different
with this script?
Well, unlike the others, this do not require tcl or perl in able to work. And
it's a single, small file.
It also has the ability to parse stuff into a file in the original movie folder,
making it possible to auto-view imdb-info when ppl enter a dir.
An extra feature is the ability to extract release dates of releases from .nfo-
files. This is so far only a BETA feature, but should work with 85-90 percent
of all .nfo files.

All three features are configurable to a certain extent, or possible to turn
off altogether.

NEEDED BINARIES:
----------------
in /glftpd/bin (or equivalent):
grep tr sed head echo bash

elsewhere:
date cat echo cut lynx grep head sed awk fold rm bash ls chown basename


SETUP:
------
Edit psxc-imdb.sh.

Copy psxc-imdb.sh to /glftpd/bin:
  cp psxc-imdb.sh /glftpd/bin && chmod +x /glftpd/bin/psxc-imdb.sh

Add/edit the following In zipscript-c (Project-ZS):
  #define enable_accept_script    TRUE
  #define accept_script           "/bin/psxc-imdb.sh"
(then "./configure && make && make install" or whatever)

Add/edit the following in glftpd.conf:
  show_diz        .message .imdb .date
(the .imdb/.date part being what's added)

Add the following to your crontab:
* * * * * /glftpd/bin/psxc-imdb.sh >/dev/null 2>&1

KNOWN BUGS:
-----------
Actually, there are a few "bugs" (or limitations) I know of.
* badly formatted .nfo's may disrupt the script's ability to grab the imdb-url
  ie, if the url is prefixed or affixed with any chars other than normal
  whitespaces, lookups will fail.
* The script do not "expand" text. I have not encountered any imdb-page with
  embedded tabs, so I have deliberately avoided using the command. If you
  encounter errors because of it, please let me know and I'll incorporate it.
* I know of only one char that clutter up tcl - '"' which I replace with '_'.
  If you know any other chars that do, or find pages with weird chars that
  f##k up your bot, let me know.
* Only the first encountered IMDb-URL encountered is looked up. You might
  look at this as more of a feature than a limitation, though. If you are
  worried that you'll loose info since this script relies on crontab, I can
  lay the uneasyness to rest by teling you that ff more than one movie is
  uploaded within one minute (or whatever you set in the crontab entry), they
  will all be shown in succession.

CONTACT:
--------
Should you scratch your head a bit too much, or require some extra functionality,
do not hesitate to contact me.
I can be emailed @ psxc@psxc.com
I'm also known to be on #glftpd and a few other chans on EFNet w/the nick psxc

GUARANTEE/LICENSE:
------------------
There is none. This script is releases "as is", and the user has full
responsibilty of setting it up correctly and using it. The author cannot be held
responsible for any losses, material or otherwise caused by this program.
