This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

imdb-1.1.0.tcl help please

Support & discussion of released scripts, and announcements of new releases.
Post Reply
O
OV2
Voice
Posts: 35
Joined: Sat Jan 21, 2006 3:54 pm
Contact:

Post by OV2 »

It removes all the stuff from the name that imdb can't handle so that you still get a useful result.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

new data on imdb

Post by rosc2112 »

Hey btw, I noticed today there's a new bit of data on imdb, showing Release Date, so I added a new tag %reldate and here's the regex I used (inserted after the Writers regexp section):

Code: Select all

# release date
if {[regexp {<h5>Release Date:</h5>(.*?)<a} $html dummy reldate]} {
     regsub -all {<[^\>]*>} $reldate {} reldate
     set reldate [string map {\n "" & " & "} $reldate]
     set reldate [string trim $reldate]
     set reldate [htmlcodes $reldate]         
}
Amended the other relevant sections to add the new tag as well, etc.
A
Alfke
Voice
Posts: 8
Joined: Sat Sep 23, 2006 1:01 pm

Post by Alfke »

Im getting this error msg:

Tcl error [imdb_proc]: can't read "announce(IMDBIRC)": no such element in array

Any ideas?

*edit*

When I disable dZSbot.tcl, the script works perfectly. Any way to run imdb.tcl with dZSbot?

*edit again*

The script works fine with dZSbot if you load it AFTER the dZSbot.tcl

Alfke
O
OV2
Voice
Posts: 35
Joined: Sat Jan 21, 2006 3:54 pm
Contact:

Post by OV2 »

It might work if you load imdb.tcl after dZSbot.tcl .
EDIT: I was too slow :oops:
s
scr1pt
Voice
Posts: 11
Joined: Fri Mar 30, 2007 1:12 am

Post by scr1pt »

Tcl error [imdb_proc]: bad index "": must be integer or end?-integer?

was working fine for past month, why an error now?
O
OV2
Voice
Posts: 35
Joined: Sat Jan 21, 2006 3:54 pm
Contact:

Post by OV2 »

Because imdb changed the layout of the search page.

http://overfiend.sessionclan.de/scripts/imdb.html
L
Luniz2k1
Voice
Posts: 19
Joined: Wed Sep 17, 2003 12:32 am

Post by Luniz2k1 »

OV2 wrote:Because imdb changed the layout of the search page.

http://overfiend.sessionclan.de/scripts/imdb.html
I just grabbed this copy and it gives the same error:

Tcl error [imdb_proc]: bad index "": must be integer or end?-integer?
O
OV2
Voice
Posts: 35
Joined: Sat Jan 21, 2006 3:54 pm
Contact:

Post by OV2 »

What was the search term? I need something to reproduce the error.
L
Luniz2k1
Voice
Posts: 19
Joined: Wed Sep 17, 2003 12:32 am

Post by Luniz2k1 »

OV2 wrote:What was the search term? I need something to reproduce the error.
!imdb Contact

DEBUG Info from the eggdrop:
[11:47] IMDB_DEBUG permission_result == 1
[11:47] IMDB_DEBUG instance == 0
[11:47] IMDB_DEBUG toput_result == PRIVMSG #Movies
[11:47] IMDB_DEBUG new instance == 1
[11:47] IMDB_DEBUG searchString: "Contact"
[11:47] IMDB_DEBUG http://akas.imdb.com/find?tt=on;nm=on;mx=5;q=Contact
[11:47] IMDB_DEBUG redirect 1
[11:47] Tcl error [imdb_proc]: bad index "": must be integer or end?-integer?
O
OV2
Voice
Posts: 35
Joined: Sat Jan 21, 2006 3:54 pm
Contact:

Post by OV2 »

Works for me (downloaded from the site and tried it). Are you using curl? Did you check if it's version 17.07.2007?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Works for me too, post the result of .set errorInfo (after enabling it if necessary)
O
OV2
Voice
Posts: 35
Joined: Sat Jan 21, 2006 3:54 pm
Contact:

Post by OV2 »

Hmm somehow his post saying "don't bother I got it working" has been deleted...
v
vans
Voice
Posts: 20
Joined: Thu Aug 09, 2007 7:21 am

Post by vans »

Hey everyone i am having a problem with this script as well. Everytime i try to use it it gives me the following error. Do i need to use curl instead htto package? is that the problem?

IMDb Debug error:

[15:38] IMDB_DEBUG permission_result == 1
[15:38] IMDB_DEBUG instance == 1
[15:38] IMDB_DEBUG toput_result == PRIVMSG #blah
[15:38] IMDB_DEBUG new instance == 2
[15:38] IMDB_DEBUG searchString: "fsd"
[15:38] IMDB_DEBUG http://akas.imdb.com/find?tt=on;nm=on;mx=5;q=fsd
[15:38] IMDB_DEBUG redirect 1
[15:38] Tcl error [imdb_proc]: bad index "": must be integer or end?-integer?

.set errorInfo:

Currently: bad index "": must be integer or end?-integer?
Currently: while executing
Currently: "string range $html [lindex $start 1] end"
Currently: (procedure "imdb_proc" line 64)
Currently: invoked from within
Currently: "imdb_proc $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"
O
OV2
Voice
Posts: 35
Joined: Sat Jan 21, 2006 3:54 pm
Contact:

Post by OV2 »

Looks like you're using an old version.

Grab the latest:
http://overfiend.sessionclan.de/scripts/imdb.html
v
vans
Voice
Posts: 20
Joined: Thu Aug 09, 2007 7:21 am

Post by vans »

Thank you it works now. One more question though. Is there a way to make it speed up how long it takes to post the next line? ATM is takes a second or so and thats to mucht ime as people have said stuff in between. thanx again.
Post Reply