Request for a change with 'GetPicture'

Comments on existing version & Suggestions for future versions. If you want a new feature suggest it here. Discussions about beta versions also come in this section.
Post Reply
trekkie
Posts: 25
Joined: 2003-01-24 11:32:56

Request for a change with 'GetPicture'

Post 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:
antp
Site Admin
Posts: 9674
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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...
trekkie
Posts: 25
Joined: 2003-01-24 11:32:56

Request for a change with 'GetPicture'

Post 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.
antp
Site Admin
Posts: 9674
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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
Post Reply