### getNFO.pl // Bringing you the power of imdb.com to your sitebot! ## ## VER 1.0.2 ########################## ## ## .1 Readme ## .2 Requierments ## .3 Installtion ## ## ## ########################## .1 Readme Made by PnG 2002 GPL (png@strippa.net) Well, I didnt see this one comming. I made this little script for fun, and know it seems like everyone wants it. What does it do then? Well, it reads the imdb number from any movie nfo that gets uploaded to your site, and then finds it on imdb.com and fetches all kind of information and prints it to your glftpd.log file so your bot can output it in your site channel! It looks something like this: [SiTENAME]-(IMDB) - Snatched some info off IMDB on Lock, Stock... (2000). Directed by: Sheree Folkson (Genre: Drama User Rating: 7.2 / 10 URL: http://us.imdb.com/Title?0243714 ) Plot Outline: Unavailable... Business: Lock, Stock... (2000) had a budget of $44m and was filmed in Pinewood Studios, London, England, UK If you want aditional help with installing or whatever, join #getnfoscript on efnet and talk to either me (PnG), NiDO or ebzoner. But please, PLEASE read the readme and read through all the settings in getnfo.pl. If you are lame, dont even bother trying to install this. BIG THANKS to: ebzoner (ASCii ARTIST & Bash) NiDO (Bash) .2 Requierments: * Perl * Perl Modules: - URI - HTML-Tags - HTML-Parser - LWP * Some kind of zipscript that supports execution of external scripts * glftpd (of course) .3 Installation: 1. Copy getnfo.pl, imdburllog.sh and templ.tml to your /glftpd/bin folder 2. chmod a+x getnfo.pl imdburllog.sh 3. Edit the settings in getnfo.pl (Make sure you really do this properly) ( If you arent using dark0nes zipscript, these steps wont apply to you ) 4. Put this in your zsconfig.h: #define enabled_accept_script 1 #define accept_script "/bin/imdburllog.sh" 5. Recompile your zipscript 6. Now you need to edit your sitebot configuration file - Add "IMDB" to msgtypes(DEFAULT) - Add set disable(IMDB) 0 - Add set variables(IMDB) "%title %name %genre %rating %url %plot %business" - Add set announce(IMDB) "\[%bold%sitename%bold\]-\(%boldIMDB%bold\) - Snatched some info off IMDB on %bold%title%bold. Directed by: %name (Genre: %bold%genre%bold User Rating: %bold%rating%bold URL: %bold%url%bold ) Plot Outline: %plot | %business" ( This one you can edit after your choice ) 7. Rehash/Restart your bot 8. and last, add this to your crontab: 1-59 * * * * /glftpd/bin/getnfo.pl 1>/dev/null 2>/dev/null Now your all set! Try and upload a .nfo file and the bot should post IMDB info in your site channel. ### And kids remember, PHP SUCKS!