Go Back   FlashFXP Forums > ioFTPD Forum > ioFTPD > Scripting > bounty's scripts

bounty's scripts BQUOTA, NEWDIR, BTRIAL, OCSCRIPT, VERSION SCRIPT, IMDB.TCL

Reply
 
Thread Tools Rate Thread
Old 02-11-2005, 09:05 PM   #1
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 424
Default windrop crashes on alternative URL format in NFO // imdb.tcl

Uhm... I had this problem for a long time but finally found the problem:

my windrop crashes right away on recieving .nfo IF the url in it formatted like this:
http://us.imdb.com/Title?xxxxxxx

it does NOT crash if it's formatted in the old way like:
http://us.imdb.com/title/ttxxxxxxx/

(where xxxxxxx is the ID of the movie)

I'm pretty sure about this bug. Yes, I have tried the way with curl.exe, bot just freezes (stops with all responding etc (probably because it runs as a service)).

Could anyone help with this problem? (No, I don't code TCL, otherwise I would ask here, right?)

Regards
wooolF[RM] is offline   Reply With Quote
Old 02-12-2005, 12:59 PM   #2
Senior Member
FlashFXP Registered User
ioFTPD Scripter
 
Join Date: Jan 2003
Posts: 288
Default

quick fix...

in imdb.tcl find the following

set ttcode "0000001"
if [regexp {/title/tt[0-9]+} $html ttcode] {
set pos [string last / $ttcode] ; incr pos
set ttcode [string range $ttcode $pos end]
}

and ADD DIRECTLY AFTER THIS

if [regexp {/Title\?[0-9]+} $html ttcode] {
set pos [string last / $ttcode] ; incr pos + 5
set ttcode [string range $ttcode $pos end]
}

no more crashing... kthx
__________________
#iotools #ioftpd (both on efnet)
tuff is offline   Reply With Quote
Old 02-12-2005, 02:02 PM   #3
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 424
Default

confirmed working, no more crashes, thnx2u ^_^
wooolF[RM] is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 07:18 AM.