egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

imdb-1.1.0.tcl help please
Goto page Previous  1, 2, 3 ... 10, 11, 12 ... 19, 20, 21  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
OV2
Voice


Joined: 21 Jan 2006
Posts: 35

PostPosted: Sun Apr 08, 2007 7:47 pm    Post subject: Reply with quote

It removes all the stuff from the name that imdb can't handle so that you still get a useful result.
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Apr 09, 2007 12:07 am    Post subject: new data on imdb Reply with quote

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 "" &amp; " & "} $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
View user's profile Send private message
Alfke
Voice


Joined: 23 Sep 2006
Posts: 8

PostPosted: Thu May 10, 2007 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
OV2
Voice


Joined: 21 Jan 2006
Posts: 35

PostPosted: Thu May 10, 2007 3:06 pm    Post subject: Reply with quote

It might work if you load imdb.tcl after dZSbot.tcl .
EDIT: I was too slow Embarassed
Back to top
View user's profile Send private message Visit poster's website
scr1pt
Voice


Joined: 30 Mar 2007
Posts: 11

PostPosted: Wed Jun 27, 2007 12:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
OV2
Voice


Joined: 21 Jan 2006
Posts: 35

PostPosted: Wed Jun 27, 2007 12:42 pm    Post subject: Reply with quote

Because imdb changed the layout of the search page.

http://overfiend.sessionclan.de/scripts/imdb.html
Back to top
View user's profile Send private message Visit poster's website
Luniz2k1
Voice


Joined: 17 Sep 2003
Posts: 19

PostPosted: Fri Aug 03, 2007 10:56 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
OV2
Voice


Joined: 21 Jan 2006
Posts: 35

PostPosted: Fri Aug 03, 2007 11:12 am    Post subject: Reply with quote

What was the search term? I need something to reproduce the error.
Back to top
View user's profile Send private message Visit poster's website
Luniz2k1
Voice


Joined: 17 Sep 2003
Posts: 19

PostPosted: Fri Aug 03, 2007 11:46 am    Post subject: Reply with quote

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
View user's profile Send private message
OV2
Voice


Joined: 21 Jan 2006
Posts: 35

PostPosted: Fri Aug 03, 2007 11:52 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Aug 04, 2007 1:57 pm    Post subject: Reply with quote

Works for me too, post the result of .set errorInfo (after enabling it if necessary)
Back to top
View user's profile Send private message
OV2
Voice


Joined: 21 Jan 2006
Posts: 35

PostPosted: Sat Aug 04, 2007 2:04 pm    Post subject: Reply with quote

Hmm somehow his post saying "don't bother I got it working" has been deleted...
Back to top
View user's profile Send private message Visit poster's website
vans
Voice


Joined: 09 Aug 2007
Posts: 20

PostPosted: Sun Oct 28, 2007 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message
OV2
Voice


Joined: 21 Jan 2006
Posts: 35

PostPosted: Sun Oct 28, 2007 11:15 am    Post subject: Reply with quote

Looks like you're using an old version.

Grab the latest:
http://overfiend.sessionclan.de/scripts/imdb.html
Back to top
View user's profile Send private message Visit poster's website
vans
Voice


Joined: 09 Aug 2007
Posts: 20

PostPosted: Sun Oct 28, 2007 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 10, 11, 12 ... 19, 20, 21  Next
Page 11 of 21

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber