!IMDB Movie Search

Platform:  mIRC
Published  Sep 26, 2009
Updated  May 20, 2013

I realize that there are several other similar scripts, however this script is part of a larger project, so I decided to add a few lines to my current progress and make a little trigger script.

First of all, this script is designed to ONLY search for Movies. This script will NOT search for TV shows. I used a google search engine instead of the imdb one, to make sure that all the results are Movie related. The google search engine also allows for a higher tolerance for spelling errors.


  • Note: You must type +imdb for each channel you want the script on in.(Requires Ops)
  • Syntax: !imdb search words (will notice the user)
  • Syntax: @imdb search words (will message the channel if user has halfop or higher)
  • Syntax: /eimbd search words (will echo to active screen)
;!IMDB Movie Search Script by Ford_Lawnmower irc.Geekshed.net #Script-Help
alias -l IMDB {
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Start Setup;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Change %tagcolor to the color you want for tags:
var %tagcolor $+($chr(15),$chr(2))
;;;; Change %textcolor to the color you want for normal text
var %textcolor $+($chr(15),$chr(3),04)
;;;; Change %linkcolor to the color/format you want for links
var %linkcolor $+($chr(15),$chr(31))
;;;; Change %ratingcolor+ to the color you want for the positive stars in the rating.
var %ratingcolor+ $+($chr(15),$chr(3),04)
;;;; Change %ratingcolor- to the color you want for the negative stars in the rating.
var %ratingcolor- $+($chr(15),$chr(3),14)
;;;; You can change the way this script prints out by editing
;;;; %lineone, %linetwo and %linethree below.
;;;; tags must be valid and separated by a space.
;;;; valid tags are as follows: title rating votes genres
;;;; runtime director writer language country date plot
;;;; shortplot cast link trailer reviews critics
;;;; If you want to omit a line, just change it to 0
;;;; Use title instead of otitle if you want the title in the language related to your ip address
var %lineone otitle rating votes reviews critics genres runtime director writer language country date
var %linetwo shortplot
var %linethree cast link trailer
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;End Setup;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
var %sockname $+(IMDB,$network,$2,$ticks)
hadd -m %sockname lineone %lineone
hadd %sockname linetwo %linetwo
hadd %sockname linethree %linethree
sockopen %sockname www.imdb.com 80
sockmark %sockname $1-2 $+(/title/,$3,/) 0 %tagcolor %textcolor %linkcolor 0 0 %ratingcolor+ %ratingcolor-
}
menu Channel,Status {
.$iif($group(#IMDB) == On,$style(1)) IMDB IMDB Trigger
..$iif($group(#IMDB) == On,$style(2)) On: .enable #IMDB
..$iif($group(#IMDB) == Off,$style(2)) Off: .disable #IMDB
}
#IMDB on
On $*:Text:/^(\+|-|!|@)IMDB.*/Si:#: {
var %action $regml(1)
if (%action isin +-) && ($regex($nick($chan,$nick).pnick,/(!|~|&|@|%)/)) {
if (%action == +) {
if ($istok(%IMDBChanList,$+($network,$chan),32)) { .msg $chan $nick $chan is already running the IMDB script }
else {
.enable #IMDB
Set %IMDBChanList $addtok(%IMDBChanList,$+($network,$chan),32)
.msg $chan $nick has activated the IMDB script for $chan .
}
}
else {
if (!$istok(%IMDBChanList,$+($network,$chan),32)) { .msg $chan $nick $chan is not running the IMDB script }
else {
Set %IMDBChanList $remtok(%IMDBChanList,$+($network,$chan),1,32)
.msg $chan $nick has deactivated the IMDB script for $chan .
}
}
}
elseif (!$timer($+(IMDB,$network,$nick))) && ($istok(%IMDBChanList,$+($network,$chan),32)) {
.timer $+ $+(IMDB,$network,$nick) 1 6 noop
var %method $iif(%action == !,.notice $nick,$iif($regex($nick($chan,$nick).pnick,/(!|~|&|@|%|\+)/),.msg $chan,.notice $nick))
GIMDB %method $2-
}
}
alias EIMDB { GIMDB echo -a $1- }
alias -l GIMDB {
$1-2 Searching For: $3- .............
var %sockname $+(GIMDB,$network,$2,$ticks)
sockopen %sockname www.google.com 80
sockmark %sockname $1-2 $+(/search?q=,$replace($3-,$chr(32),+),+site:imdb.com&rls=en&hl=en) $3-
}
On *:sockopen:GIMDB*: {
if (!$sockerr) {
sockwrite -nt $sockname GET $gettok($sock($sockname).mark,3,32) HTTP/1.0
sockwrite -n $sockname Host: www.google.com
sockwrite -n $sockname User-Agent: Opera 9.6
sockwrite -n $sockname $crlf
}
else { echo -st Socket Error $nopath($script) | hfree $sockname | sockclose $sockname }
}
On *:sockread:GIMDB*: {
if ($sockerr) { echo -st Socket Error $nopath($script) | hfree $sockname | sockclose $sockname }
else {
sockread &GIMDB
if ($bintween(&GIMDB,<cite>www.imdb.com/title/,/</cite>,1)) {
IMDB $gettok($sock($sockname).mark,1-2,32) $v1
sockclose $sockname
return
}
elseif ($bintween(&GIMDB,Your search,</b> - did not match any documents.,1)) {
$gettok($sock($sockname).mark,1-2,32) Sorry - Cannot find $gettok($sock($sockname).mark,4-,32)
sockclose $sockname
return
}
}
}
On *:sockclose:GIMDB*: { $gettok($sock($sockname).mark,1-2,32) Sorry - Cannot find $gettok($sock($sockname).mark,4-,32) }
On *:sockopen:IMDB*: {
if (!$sockerr) {
sockwrite -nt $sockname GET $gettok($sock($sockname).mark,3,32) HTTP/1.0
sockwrite -n $sockname Host: www.imdb.com
sockwrite -n $sockname User-Agent: Opera 9.6
sockwrite -n $sockname $crlf
}
else { echo -st Socket Error $nopath($script) | sockclose $sockname | return }
}
On *:sockclose:IMDB*: hfree $sockname
On *:sockread:IMDB*: {
if ($sockerr) { echo -st Socket Error $nopath($script) | sockclose $sockname | return }
else {
var %IMDb | sockread %IMDb
;<title>([^<]*)\s-\sIMDb<\/title>
if ($regex(%imdb,/class="title-extra"\sitemprop="name">([^<]*)/i)) { echo -gat set $regml(1) | hadd -m $sockname title $+($gettok($sock($sockname).mark,5,32),Title:,$chr(32),$gettok($sock($sockname).mark,6,32)) $Xchr($regml(1)) }
elseif ($regex(%imdb,/<title>(.*?)<\/title>/i)) hadd -m $sockname title $+($gettok($sock($sockname).mark,5,32),Title:,$chr(32),$gettok($sock($sockname).mark,6,32)) $Xchr($remove($regml(1),IMDb -))
elseif ($regex(%imdb,/'og:title'\s?content="(.*?)"\s?\/>/i)) {
hadd -m $sockname otitle $+($gettok($sock($sockname).mark,5,32),Title:,$chr(32),$gettok($sock($sockname).mark,6,32)) $Xchr($gettok($regml(1),1,45))
}
elseif ($regex(%imdb,/([a-z]{6,8}:)/i)) sockmark $sockname $puttok($sock($sockname).mark,$regml(1),4,32)
elseif (<h2>Storyline</h2> isin %imdb) sockmark $sockname $puttok($sock($sockname).mark,plot:,4,32)
elseif (<table class="cast_list"> isin %imdb) sockmark $sockname $puttok($sock($sockname).mark,cast:,4,32)
elseif (Release Date: isin %imdb) sockmark $sockname $puttok($sock($sockname).mark,date:,4,32)
elseif ($regex(%imdb,/itemprop="ratingCount">(.*?)<\/span>/i)) hadd -m $sockname votes $+($gettok($sock($sockname).mark,5,32),Votes:,$gettok($sock($sockname).mark,6,32)) $regml(1)
elseif ($regex(shortplot,%imdb,/<meta name="description"\scontent="(.*?)"\s/>/i)) {
hadd -m $sockname shortplot $+($gettok($sock($sockname).mark,5,32),Plot:,$chr(32),$gettok($sock($sockname).mark,6,32)) $Xchr($regml(shortplot,1))
sockmark $sockname $puttok($sock($sockname).mark,0,4,32)
}
elseif ($regex(%imdb,/itemprop="reviewCount">(.*?)<\/span>/i)) {
if ($gettok($sock($sockname).mark,4,32) == critics:) hadd -m $sockname critics $+($gettok($sock($sockname).mark,5,32),Critics:,$gettok($sock($sockname).mark,6,32)) $regml(1)
else {
hadd -m $sockname reviews $+($gettok($sock($sockname).mark,5,32),Reviews:,$gettok($sock($sockname).mark,6,32)) $regml(1)
sockmark $sockname $puttok($sock($sockname).mark,critics:,4,32)
}
}
elseif (*star-box-giga-star" iswm %imdb) { sockmark $sockname $puttok($sock($sockname).mark,votes:,4,32) }
elseif ($gettok($sock($sockname).mark,4,32) == votes: && %imdb isnum) {
hadd -m $sockname votes $+($gettok($sock($sockname).mark,5,32),Votes:,$gettok($sock($sockname).mark,6,32)) %imdb
sockmark $sockname $puttok($sock($sockname).mark,nothing,4,32)
}
elseif ($gettok($sock($sockname).mark,4,32) == Critics:) {
if ($regex(%imdb,/>([\d\x2C]+)\sreviews<\/a>/i)) hadd -m $sockname critics $+($gettok($sock($sockname).mark,5,32),Critics:,$gettok($sock($sockname).mark,6,32)) $regml(1)
}
elseif ($gettok($sock($sockname).mark,4,32) == runtime:) {
if ($regex(%imdb,/<time.*>(.*?)<\/time>/i)) {
hadd -m $sockname runtime $+($gettok($sock($sockname).mark,5,32),Runtime:,$gettok($sock($sockname).mark,6,32)) $regml(1)
sockmark $sockname $puttok($sock($sockname).mark,$v1,4,32)
tokenize 32 $sock($sockname).mark
hadd -m $sockname link $+($6,$5,Link:,$chr(32),$7,http://www.imdb.com,$3)
if ($hget($sockname,lineone)) put $1-2 $regsubex($v1,/([\S]+)/g,$hget($sockname,\t))
if ($hget($sockname,linetwo)) put $1-2 $regsubex($v1,/([\S]+)/g,$hget($sockname,\t))
if ($hget($sockname,linethree)) put $1-2 $regsubex($v1,/([\S]+)/g,$hget($sockname,\t))
hfree $sockname
sockclose $sockname
return
}
}
elseif ($gettok($sock($sockname).mark,4,32) == genres:) {
if ($regex(%imdb,/>([^<]*)<\/a>/g)) hadd -m $sockname genres $addtok($hget($sockname,genres),$regml(1),32)
elseif (</div> isin %imdb) {
hadd -m $sockname genres $+($gettok($sock($sockname).mark,5,32),Genres:,$gettok($sock($sockname).mark,6,32)) $hget($sockname,genres)
sockmark $sockname $puttok($sock($sockname).mark,$v1,4,32)
}
}
elseif ($gettok($sock($sockname).mark,4,32) == director:) {
if ($regex(%imdb,/"name">(.*?)<\/span>/i)) hadd -m $sockname director $+($gettok($sock($sockname).mark,5,32),Director:,$gettok($sock($sockname).mark,6,32)) $Xchr($regml(1))
elseif (</div> isin %imdb) sockmark $sockname $puttok($sock($sockname).mark,$v1,4,32)
}
elseif ($gettok($sock($sockname).mark,4,32) == writer:) {
if ($regex(%imdb,/"name">(.*?)<\/span>/i)) hadd -m $sockname writer $+($gettok($sock($sockname).mark,5,32),Writer:,$gettok($sock($sockname).mark,6,32)) $Xchr($regml(1))
elseif (</div> isin %imdb) sockmark $sockname $puttok($sock($sockname).mark,$v1,4,32)
}
elseif ($gettok($sock($sockname).mark,4,32) == country:) {
if ($regex(%imdb,/>(.*?)<\/a>/)) set %IMDb.Country $+($iif(%IMDb.Country,$+($v1,$chr(44))),$Xchr($regml(1)))
elseif (</div> isin %imdb) {
sockmark $sockname $puttok($sock($sockname).mark,$v1,4,32)
hadd -m $sockname country $+($gettok($sock($sockname).mark,5,32),Country:,$gettok($sock($sockname).mark,6,32)) %IMDb.Country
unset %IMDb.Country
}
}
elseif ($gettok($sock($sockname).mark,4,32) == language:) {
if ($regex(%imdb,/>([^<]*)<\/a>/)) set %IMDb.Language $+($iif(%IMDb.Language,$+($v1,$chr(44))),$Xchr($regml(1)))
elseif (</div> isin %imdb) {
sockmark $sockname $puttok($sock($sockname).mark,$v1,4,32)
hadd -m $sockname language $+($gettok($sock($sockname).mark,5,32),Language:,$gettok($sock($sockname).mark,6,32)) %IMDb.Language
unset %IMDb.Language
}
}
elseif ($gettok($sock($sockname).mark,4,32) == plot:) {
if ($regex(%imdb,/<p>(.*)/)) {
tokenize 32 $sock($sockname).mark
hadd -m $sockname plot $6 $+($5,Plot:,$6) $Xchr($regml(1))
sockmark $sockname $puttok($sock($sockname).mark,0,4,32)
}
}
elseif ($gettok($sock($sockname).mark,4,32) == cast:) {
if ($regex(%imdb,/href="\/name\/.*\/">([^<]*)<\/a>/)) set %IMDb.Cast $+($iif(%IMDb.Cast,$+($v1,$chr(44))),$Xchr($regml(1)))
elseif ($regex(%imdb,/alt="(.*?)"/)) set %IMDb.Cast $addtok(%IMDb.Cast,$Xchr($regml(1)),44)
elseif (</table> isin %imdb) {
sockmark $sockname $puttok($sock($sockname).mark,0,4,32)
hadd -m $sockname cast $+($gettok($sock($sockname).mark,5,32),Cast:,$gettok($sock($sockname).mark,6,32)) %IMDb.Cast
unset %IMDb.Cast
tokenize 32 $sock($sockname).mark
sockmark $sockname $deltok($sock($sockname).mark,10-,32)
}
}
elseif ($gettok($sock($sockname).mark,4,32) == date:) {
if ($regex(%imdb,/>(.*?)<\/time>/i)) {
sockmark $sockname $puttok($sock($sockname).mark,notag:,4,32)
tokenize 32 $sock($sockname).mark
hadd -m $sockname date $+($5,Release Date:,$chr(32),$6,$regml(1))
}
}
elseif (watch trailer isin %imdb && $regex(%imdb,/<a\shref="([^<]*)"\sonclick="/)) {
tokenize 32 $sock($sockname).mark
hadd -m $sockname trailer $+($5,Trailer:,$chr(32),$7,http://www.imdb.com,$regml(1))
}
elseif (Reviews: isin %imdb || </html> isin %imdb) {
tokenize 32 $sock($sockname).mark
hadd -m $sockname link $+($6,$5,Link:,$chr(32),$7,http://www.imdb.com,$3)
if ($hget($sockname,lineone)) put $1-2 $regsubex($v1,/([\S]+)/g,$hget($sockname,\t))
if ($hget($sockname,linetwo)) put $1-2 $regsubex($v1,/([\S]+)/g,$hget($sockname,\t))
if ($hget($sockname,linethree)) put $1-2 $regsubex($v1,/([\S]+)/g,$hget($sockname,\t))
hfree $sockname
sockclose $sockname
return
}
elseif ($regex(%imdb,/title="Users\srated\sthis\s(.*?)\//i)) {
var %L $round($regml(1),0), %R $calc(10 - %L)
tokenize 32 $sock($sockname).mark
hadd -m $sockname rating $+($5,Rating:,$chr(32),$5,$chr(91),$10,$str(*,%L),$11,$str(*,%R),$5,$chr(93),$6) $regml(1)
}
}
}
alias -l AddMark { sockmark $sockname $addtok($sock($sockname).mark,$1-,32) }
alias -l Xchr {
var %return $regsubex($regsubex($1-,/&#x([A-F0-9]{1,2});/g,$chr($base($regml(\n),16,10))),/&#([0-9]{2});/g,$chr(\1))
return $replacecs(%return,&ndash;,–,&middot;,·,&raquo;,»,&laquo;,«,&Uuml;,Ü,&uuml;,ü,&Aacute;,Á,&aacute;,á,&Eacute;,$&
É,&eacute;,é,&Iacute;,Í,&iacute;,í,&Oacute;,Ó,&oacute;,ó,&Ntilde;,Ñ,&ntilde;,ñ,&Uacute;,Ú,&uacute;,ú,&nbsp;,$chr(32),$&
&aelig;,æ,&quot;,")
}
alias -l Put {
if (!$regex($1,/(\.|^)(msg|notice|echo)$/Si)) || (!$3) { return }
var %tokens $0, %Tstart 4, %Dtimer 1500
if ($timer($+(Put,$2,$network)).secs) { %Dtimer = $calc($v1 * 1000) }
while ($len($($+($,%Tstart,-,%tokens),2)) > 430) {
dec %tokens
if ($len($($+($,%Tstart,-,%tokens),2)) <= 430) {
.timer -m 1 %Dtimer $1-3 $($+($,%Tstart,-,%tokens),2))
inc %Dtimer 1500
%Tstart = $calc(%tokens + 1)
%tokens = $0
}
}
.timer -m 1 %Dtimer $1-3 $($+($,%Tstart,-,%tokens),2))
.timer $+ $+(Put,$2,$network) -m 1 $calc(%Dtimer + 1500) noop
}
alias -l bintween {
var %count = 1, %mark = 0, %mark2 = 0
while (%count <= $4) {
if ($bfind($1, %mark2, $2).text) {
%mark = $calc($bfind($1, %mark2, $2).text + $len($2))
if ($bfind($1, %mark, $3).text) {
%mark2 = $bfind($1, %mark, $3).text
}
else { return 0 }
}
else { return 0 }
inc %count
}
return $bvar($1, $iif(%mark > 0,%mark,1), $calc(%mark2 - %mark)).text
}

Comments

Sign in to comment.
ovelayer   -  3 days ago
stopped working
FordLawnmower  -  3 days ago
I have this script still working. Can you give me a little more info than that overlayer ?
ovelayer  -  3 days ago
sure..
[9:41am] <@xXBERTOXx> !imdb iron man 3
[9:41am] *Bong* Searching For: iron man 3 .............
and it just hangs there doesn't return any info ...
FordLawnmower  -  3 days ago
I just updated the code with what I'm using. It shouldn't be different but idk ;/

Quote


[12:45:15] <!Ford_Lawnmower> @imdb iron man 3
[12:45:15] <GlueSniffer> Searching For: iron man 3 .............
[12:45:20] <GlueSniffer> Title: Iron Man 3 (2013) Rating: [**********] 6.2 Votes: 139,009 Reviews: 768 user Critics: 419 critic Genres: Action Adventure Sci-Fi Runtime: 130 min Director: Shane Black Language: English Country: USA,China
[12:45:21] <GlueSniffer> Plot: Directed by Shane Black. With Robert Downey Jr., Gwyneth Paltrow, Don Cheadle, Guy Pearce. When Tony Stark's world is torn apart by a formidable terrorist called the Mandarin, he starts an odyssey of rebuilding and retribution.
[12:45:23] <GlueSniffer> Cast: Robert Downey Jr.,Gwyneth Paltrow,Don Cheadle,Guy Pearce,Rebecca Hall,Jon Favreau,Ben Kingsley,James Badge Dale,Stephanie Szostak,Paul Bettany,William Sadler,Dale Dickey,Ty Simpkins,Miguel Ferrer,Xueqi Wang Link: http://www.imdb.com/title/tt1300854/
ovelayer  -  3 days ago
thats weird might be on my end then and i apologize..
it still hangs..
but your rottentomatoes script works fine..idk
FordLawnmower  -  3 days ago
Did you try the updated code ovelayer? It could have been different. I've made so many different edits of this, I really don't know.
One thing to consider. !imdb will notice the user so something could be blocking that. ie. the bot is not registered/identified and the user calling the script has usermode +R set.
ovelayer  -  3 days ago
i did try the new script i still have the same problem
the bot is registerd and identified
the server set +ixzG modes on users idk if that is the problem
i am running windows 8 idk if that could be a prob i see it uses opera in the coding..idk
ovelayer  -  3 days ago
just doesn't make sence your google and rotten both work fine
Sign in to comment

beni   -  20 days ago
My box is outside US so it wont let me take eng title possible you can help out?
For some reason it wont take the title from above the "<i>(original title)</i>"
http://pastebin.com/ptbqZGFR
 Respond  
MashhitDK   -  Apr 06, 2013
Is it possible to get it to pull US/ENG title only?
As in no mater where the BOT/you're located it will pull US/ENG title ?
I've got My bot hosted on server in France and would like it to pull US/ENG title no mater what movie you search for.
As it is now when it's a movie that isn't ENG/US it will pull it either French or original title... would like it to pull US/ENG no mater what.

This possible or am I gonna have to get it in either French and/or the original title ?
FordLawnmower  -  Apr 07, 2013
I think this solves that issue MashhitDK : http://pastebin.com/6qKGJ9F0
Let me know if it doesn't
MashhitDK  -  Apr 08, 2013
Thank you so much @FordLawnmower
Am gonna test it now and report back...
But thanks none the less... really do appreciate it <3

EDiT
It ain't working... tried doing a search for Three Colors: Blue
and I'm getting Danish version on My test client and French on My bot... / it's stilling pulling iNFO out from IP...
And it's pulling from IP no mater if I set it to use oTitle or Title... both will give Me the same respond.

Not sure that ain't because of an error here...
Will check back later when I've removed everything else and see if that makes a difference.

+ small error when pulling Director... it ain't removing all the "http stuff" it "wraps" it in
<span class="itemprop" itemprop="name">Krzysztof Kieslowski</span>
FordLawnmower  -  Apr 09, 2013
I would need to see the source of the page from the bots country to parse this MashhitDK. It seems to be a little different in each country. If your not sure how to get this, come to irc.geekshed.net #Script-Help and I will help you sort it.
Sign in to comment

izzi   -  Mar 30, 2013
I've actually run into a weird problem.

«13:03:51» {~Melisandre} .imdb fight club
«13:03:52» {&GLaDOS} Searching For: fight club
«13:03:57» {&GLaDOS} Title: Fight Club (1999) Rating: [**********] 7.6 Genres: Drama Runtime: 139 min
«13:03:59» {&GLaDOS} Link: http://www.imdb.com/title/tt0137523/

The actual rating for Fight Club on IMDB is 8.9. All of the ratings are like this for me.
 Respond  
hxck   -  Mar 26, 2013
I got something weird a minute ago:

Quote

(03:28:48 am) <~hxck> !imdb jack the giant killer 2013
(03:28:48 am) -Victoria- Searching For: jack the giant killer 2013 .............
(03:28:51 am) -Victoria- Link: http://www.imdb.com/title/tt1351685/fullcredits</cite><span/

Not sure what caused it as I just updated the snippet a minute before I used it.
 Respond  
ovelayer   -  Mar 17, 2013
anychance of adding in some features like
!nowshowing (shows movies currently playing in theaters)
!commingsoon (shows upcomming movies in theaters)
!topmovies (shows current top 10 movies in theaters)

kinda like this tcl script
http://www.hawkee.com/snippet/9540/

but for mirc lol

would be soooo awsomely cool as your imdb script seems to the the only currently working and supported script for mirc!
we soooooooo appreciate you!
 Respond  
ovelayer   -  Feb 19, 2013
thanks FordLawnmower...love this scirpt!
 Respond  
FordLawnmower   -  Feb 19, 2013
*Updated to adapt to page changes
 Respond  
ChUcKst3r   -  Jan 31, 2013
<@C-b0t> <i>(original title)</i> Rating: [**********] 7 Votes: 3,966 Reviews: 10 user Critics: 37 critic Genres: Comedy Runtime: 84 min Director: Daniel Cohen Writer: Daniel Cohen Language: French,Spanish,Japanese,English Country: France,Spain

it doesn't show the original title anymore

for the rest great scripts/snippets you are sharing FordLawn !!!
FordLawnmower  -  Jan 31, 2013
@ChUcKst3r I updated the code here with the version I am using. Please try the code at the top of the page and let me know if you still have a problem.
If you are still getting the wrong info for the title, post what you searched for so I can try to reproduce the error.
ChUcKst3r  -  Feb 01, 2013
[08:52:49] <+ChUcKst3r> @imdb comme un chef
[08:52:49] <@C-b0t> Searching For: comme un chef .............
[08:53:02] <@C-b0t> <i>(original title)</i> Rating: [**********] 7 Votes: 3,970 Reviews: 10 user Critics: 37 critic Genres: Comedy Runtime: 84 min Director: Daniel Cohen Writer: Daniel Cohen Language: French,Spanish,Japanese,English Country: France,Spain
[08:53:02] <@C-b0t> Cast: Jean Reno,Michaël Youn,Raphaëlle Agogué,Julien Boisselier,Salomé Stévenin,Serge Larivière,Issa Doumbia,Bun-hay Mean,Pierre Vernier,Santiago Segura,Geneviève Casile,André Penvern,Rebecca Miquel,James Gerard,Henri Payet Link: http://www.imdb.com/title/tt1911553/

thats what i get, even after the update.

ps. even gets the error with wel known movies like the godfather , also the rating isn't correct

[08:55:32] <@C-b0t> Searching For: the godfather .............
[08:55:44] <@C-b0t> <i>(original title)</i> Rating: [**********] 7.4 Votes: 653,473 Reviews: 1,567 user Critics: 171 critic Genres: Crime Drama Runtime: 175 min Director: Francis Ford Coppola Language: English,Italian,Latin Country: USA
[08:55:45] <@C-b0t> Cast: Marlon Brando,Al Pacino,James Caan,Richard S. Castellano,Robert Duvall,Sterling Hayden,John Marley,Richard Conte,Al Lettieri,Diane Keaton,Abe Vigoda,Talia Shire,Gianni Russo,John Cazale,Rudy Bond Link: http://www.imdb.com/title/tt0068646/

with a score of 9.2 on imdb.com
FordLawnmower  -  Feb 01, 2013
Hmm I still don't get that, so I'm guessing it's a regional issue.

Quote


[18:57:09] <Gliiim> Title: Comme un chef (2012) Rating: [**********] 6.1 Votes: 3,977 Reviews: 10 user Critics: 37 critic Genres: Comedy Runtime: 84 min Director: Daniel Cohen Writer: Daniel Cohen Language: French,Spanish,Japanese,English Country: France,Spain
[18:57:11] <Gliiim> Cast: Jean Reno,Michaël Youn,Raphaëlle Agogué,Julien Boisselier,Salomé Stévenin,Serge Larivière,Issa Doumbia,Bun-hay Mean,Pierre Vernier,Santiago Segura,Geneviève Casile,André Penvern,Rebecca Miquel,James Gerard,Henri Payet Link: http://www.imdb.com/title/tt1911553/

What country are you in ?
ChUcKst3r  -  Feb 02, 2013
i'm from belgium, but the bot is hosted somewhere else.
Don't know exactly where, i'll try to find out and i'll let you know
incognitus  -  Feb 04, 2013
Im having the exact same problem. This script always worked great till now. Im in Portugal btw.

Thanks for all your work FordLawnmower.
FordLawnmower  -  Feb 04, 2013
Updated. Please try the code at the top and report back if this bug is resolved.
incognitus  -  Feb 04, 2013
You're the man. Bug fixed!

Now here's another issue. The title now is being displayed in my language, which is Portuguese, but i wanna keep the english. Something i can do or you?

Thanks a lot, man!
ChUcKst3r  -  Feb 04, 2013
Works like a charm again Ford !!!!
thx alot for the update !!!

And like incognitus says. it does find the tittle in dutch for me now :)
FordLawnmower  -  Feb 05, 2013
Try this edit and let me know if you get english titles. http://pastebin.com/6qKGJ9F0
ChUcKst3r  -  Feb 06, 2013
still does the dutch movie name, after edit
incognitus  -  Feb 06, 2013
Same here, still my native language (Portuguese).
FordLawnmower  -  Feb 06, 2013
I made a small change can you please try this again: http://pastebin.com/6qKGJ9F0
Sorry, I'm really just guessing at it because imdb now generates a different page for every language.
ChUcKst3r  -  Feb 07, 2013
still have the tittle in dutch mate.
incognitus  -  Feb 07, 2013
Still not working. This happened before and you always managed to "fix" the issue.

Im sure you can do it again! Keep up the good work!
FordLawnmower  -  Feb 07, 2013
The problem that I have is I can't see the source page for non-english ip's.
If someone could pastebin the page source for me, I can fix this in a couple of minutes.

  • Go to imdb.com
  • Search for a movie and select that movie, so you are looking at the movies page.
  • Right click on the page where there is some white space and select "view page source" or similar.
  • Click on the newly created source tab.
  • Copy all the text in the source tab. (ctrl+a then ctrl+c)
  • Paste the results to pastebin.com and post a link back here so I can see it.

This process may be a little different in some browsers.
incognitus  -  Feb 07, 2013
There ya go bud!

http://pastebin.com/hJg22sbL
FordLawnmower  -  Feb 07, 2013
Thanks incognitus :)
I didn't realize that it was showing both languages.
Try this edit: http://pastebin.com/6qKGJ9F0
incognitus  -  Feb 08, 2013
Works flawlessly! Thanks a lot for all your hard work. Much appreciated! :)
ChUcKst3r  -  Feb 09, 2013
this is my version of the pastebin
http://pastebin.com/VN7S2sxS
incognitus  -  Feb 10, 2013
For some odd reason im getting titles in Portuguese once again. 8 out of 10, are returning in Portuguese.

Date isn't working either. All the rest works perfectly. ;)
Sign in to comment

s3ff3r   -  Jan 08, 2013
working well. thanks.
toclafane1  -  Jan 09, 2013
You do need to be % status or higher in the channel you type +/-IMDB in, to turn on/off.
s3ff3r  -  Jan 09, 2013
That part I understood, and I was % in the channel I was trying to use it in.
FordLawnmower  -  Jan 10, 2013
@s3ff3r To test the script type /eimdb movienamehere (From the client that is running the script)
If this works then the script is working fine.
Something to consider::
This script is made for a bot and requires a second client to trigger it.
You will not see the results of a movie search from the client running the script unless you are using the /eimdb command.
The output to the screen is suppressed to conserve the bots resources.

Sign in to comment

FordLawnmower   -  Oct 10, 2012
Updated to fix broken rating.
 Respond  
FordLawnmower   -  Sep 14, 2012
@hitmanukDee Scroll to the top of the script and there are instructions on how to change all the output.

Quote from the top of the script::

Quote

;;;; You can change the way this script prints out by editing
;;;; %lineone, %linetwo and %linethree below.
;;;; tags must be valid and separated by a space.
;;;; valid tags are as follows: title rating votes genres
;;;; runtime director writer language country date plot
;;;; shortplot cast link trailer reviews critics
;;;; If you want to omit a line, just change it to 0
var %lineone title rating votes reviews critics genres runtime director writer language country date
var %linetwo shortplot
var %linethree cast link trailer


Edit:: I see what you are getting is the shortplot. Sometimes the short summary on imdb includes the main cast members. Your options are to use the regular plot or remove the cast from %linethree .
 Respond  
hitmanukDee   -  Sep 14, 2012
Hello, i just came across this script because the other i was using no longer worked, this is perfect except when it displays the plot it gives the cast before the plot.
example:

Plot: Directed by Barry Sonnenfeld. With Will Smith, Tommy Lee Jones, Josh Brolin, Jemaine Clement. Agent J travels in time to MIB's early years in the 1960s, to stop an alien from assassinating his friend Agent K and changing history.

is it possible to make it just give the plot and not the cast? thanks
 Respond  
cptpan   -  Jul 11, 2012
This is dope, cheers
 Respond  
SRU   -  May 27, 2012
Just checked with the above edit and it's working here.
NOTE: That unless you do @IMDB <MOViE> it won't msg channel but instead notice nick (and you will also need to be at least HalfOP (%) for it to PM channel)
So if you doing !IMDB <MOVIE> it will notice you not PM the channel.
 Respond  
skyy_net   -  May 26, 2012
that didn't work......fordlawnmower can you please help me :(
 Respond  
SRU   -  May 26, 2012
Replacing the current on TEXT event should do the trick @skyy_net

Code

 

Removed the enable/disable plus the check to see if it is activated so should do the trick ;)
 Respond  
skyy_net   -  May 26, 2012
hey fordlawnmower is there a way to take out the +imdb and -imdb part so that every channel the bot goes to the script is already on.
 Respond  
worldwide7477   -  May 14, 2012
thanks ford works great now !!
also when you fixed the short plot the smiley took off lol love it !!
 Respond  
FordLawnmower   -  May 14, 2012
**Updated** to fix "shortplot"
 Respond  
FordLawnmower   -  May 14, 2012
@worldwide7477 I'm guessing that the problems you are having are related to a non standard irc client and not this script. I can't find any issues with inaccurate links. If you post back a few movies that you had problems with , I will test them.
The !imdb trigger sends a private "notice" to the user. If your irc client doesn't support this then you must make a small change to the script. This has been addressed several times in the comments on this page. The @imdb trigger will message the channel , but only if the user has halfops or higher. The triggers are explained in the script description at the top of this page.
As for the "waving smiley " issue, I have no idea what that is. This script script is made for use in a mIRC bot and to work with other mIRC clients or similar.
The 04 is again a problem with your irc client. If you take the time to read the setup at the top of the script, you will see that all of the colors are editable. One solution would be to change them all to $chr(160)

I will take a look at the "shortplot" when I get home from work.
Sorry for neglecting this post. I've been a little busy.

 Respond  
worldwide7477   -  May 14, 2012
Movie links are all wrong when searching if you can please fix !!! also !imdb does not work for some reason the @imdb does work other then that this script is great ...i can also do without the waving smiley if you can till me which line to remove it thanks im not a scripter but i can find allot within by looking at it thanks. an i notice someone was asking about the numbers that was popping up 04 in the room its within the color just remove the 04.
 Respond  
turbuiance   -  Apr 01, 2012
Fix for Short Plot:
I altered the code some but on mine it is line 116. (just do a search in the snippet for "description" (no quotes).. on that line

Code

 

you need to add a <p> infront of the <p
like this:

Code

 

that's it.. i have tried with 5+ movies and all the short plots have worked.. im sure ford has a better way, but this is what i could figure out until he gets a change to update.. Finally i get to help on here instead of needing help.. lol
 Respond  
RicJames   -  Mar 27, 2012
Can we please get an update FordLawnMower. Thanks in advance.
 Respond  
beeper   -  Mar 23, 2012
Yeah, its been confirmed the "shortplot" isn't working anymore. Everything else works fine after a few days of testing
 Respond  
rastamanx   -  Mar 22, 2012
Looks like shortplot is not working anymore =)
 Respond  
n0000b   -  Mar 13, 2012
i tried that too toclafane1.. i did write +imdb in channel and then the !imdb words but it didnt worked :( maybe i m missing something or doing something wrong.
 Respond  
toclafane1   -  Mar 13, 2012
n0000b

Quote

Note: You must type +imdb for each channel you want the script on in.(Requires Ops)
You need to do that in each channel you want it to work in, you need to be Op or higher.
 Respond  
n0000b   -  Mar 13, 2012
cant get it to work tried adding the code to remote but its didnt worked. i dont know about this but i am trying to figure out how it works ...
 Respond  
rastamanx   -  Mar 13, 2012
Looks like genres parsing is failing now ?
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.