| View previous topic :: View next topic |
| Author |
Message |
OV2 Voice
Joined: 21 Jan 2006 Posts: 35
|
Posted: Sun Apr 08, 2007 7:47 pm Post subject: |
|
|
| It removes all the stuff from the name that imdb can't handle so that you still get a useful result. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Apr 09, 2007 12:07 am Post subject: new data on imdb |
|
|
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: |
# 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. |
|
| Back to top |
|
 |
Alfke Voice
Joined: 23 Sep 2006 Posts: 8
|
Posted: Thu May 10, 2007 12:48 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
OV2 Voice
Joined: 21 Jan 2006 Posts: 35
|
Posted: Thu May 10, 2007 3:06 pm Post subject: |
|
|
It might work if you load imdb.tcl after dZSbot.tcl .
EDIT: I was too slow  |
|
| Back to top |
|
 |
scr1pt Voice
Joined: 30 Mar 2007 Posts: 11
|
Posted: Wed Jun 27, 2007 12:31 pm Post subject: |
|
|
Tcl error [imdb_proc]: bad index "": must be integer or end?-integer?
was working fine for past month, why an error now? |
|
| Back to top |
|
 |
OV2 Voice
Joined: 21 Jan 2006 Posts: 35
|
|
| Back to top |
|
 |
Luniz2k1 Voice
Joined: 17 Sep 2003 Posts: 19
|
Posted: Fri Aug 03, 2007 10:56 am Post subject: |
|
|
I just grabbed this copy and it gives the same error:
Tcl error [imdb_proc]: bad index "": must be integer or end?-integer? |
|
| Back to top |
|
 |
OV2 Voice
Joined: 21 Jan 2006 Posts: 35
|
Posted: Fri Aug 03, 2007 11:12 am Post subject: |
|
|
| What was the search term? I need something to reproduce the error. |
|
| Back to top |
|
 |
Luniz2k1 Voice
Joined: 17 Sep 2003 Posts: 19
|
Posted: Fri Aug 03, 2007 11:46 am Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
OV2 Voice
Joined: 21 Jan 2006 Posts: 35
|
Posted: Fri Aug 03, 2007 11:52 am Post subject: |
|
|
| Works for me (downloaded from the site and tried it). Are you using curl? Did you check if it's version 17.07.2007? |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Aug 04, 2007 1:57 pm Post subject: |
|
|
| Works for me too, post the result of .set errorInfo (after enabling it if necessary) |
|
| Back to top |
|
 |
OV2 Voice
Joined: 21 Jan 2006 Posts: 35
|
Posted: Sat Aug 04, 2007 2:04 pm Post subject: |
|
|
| Hmm somehow his post saying "don't bother I got it working" has been deleted... |
|
| Back to top |
|
 |
vans Voice
Joined: 09 Aug 2007 Posts: 20
|
Posted: Sun Oct 28, 2007 10:56 am Post subject: |
|
|
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" |
|
| Back to top |
|
 |
OV2 Voice
Joined: 21 Jan 2006 Posts: 35
|
|
| Back to top |
|
 |
vans Voice
Joined: 09 Aug 2007 Posts: 20
|
Posted: Sun Oct 28, 2007 1:12 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|