Page 1 of 1

Request for a change with 'GetPicture'

Posted: 2003-02-04 10:47:20
by trekkie
I Think a change is needed in the prototype of 'GetPicture' scripting procedure from a procedure to a function returning boolean.

Sometime the picture address is not valid and nothing is returned to the picture field. It would be nice to know. :ha:

Posted: 2003-02-04 14:16:01
by antp
I am not sure that it is easy to add, I'll see if I can add in future versions.
Why would the link be wrong ? It is a problem on the site, so a not so common case I guess...

Request for a change with 'GetPicture'

Posted: 2003-02-04 16:56:15
by trekkie
I've encountered this during IMDB script writing.
Before you call 'GetPicture' you use 'Stringreplace' to get the
Large picture instead of the thumbnail.

However there are cases that by doing so you get no result .
Several possiblities are :
1. The Large Picture realy does not exits.
2. It is temporary offline.
3. It is temporary replaced by a discount picture - which does not conform to the 'replacement rule' .

You can't tell beforehand if the link will yield any result so getting feedback from 'GetPicture' is required.

Posted: 2003-02-04 21:59:06
by antp
Ok
Or maybe a "ServerReponse" function that will give the code returned by the server for a link (200 = ok, 404 = not found, ...)
It would be easier to do for me I think :D