PDA

View Full Version : windrop crashes on alternative URL format in NFO


wooolF[RM]
02-11-2005, 10:05 PM
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

tuff
02-12-2005, 01:59 PM
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

wooolF[RM]
02-12-2005, 03:02 PM
confirmed working, no more crashes, thnx2u ^_^