1
Scripts and Templates / IAFD People
« on: November 14, 2013, 04:25:33 am »
There is a problem loading the image for some people and I think it's where the image URL contains spaces. The URL for the person is:
http://www.iafd.com/person.rme/perfid=alishaadams/gender=f/alisha-adams.htm
The current procedure in the script I use is:
procedure ParsePhoto(PhotoURL : String);
begin
LogMessage('PARSING PHOTO...' + PhotoURL);
PhotoURL:=HTMLToText (PhotoURL);
AddImageURL(4,PhotoURL);
end;
PVD log:
PARSING PHOTO...http://www.iafd.com/graphics/headshots/alishaadams_f_alisha adams aalluredotcom hs.jpg
Url di download: Foto
GET: http://www.iafd.com/graphics/headshots/alishaadams_f_alisha adams aalluredotcom hs.jpg
HTTP/1.1 400 Bad Request
I tried replacing spaces in PhotoURL with %20 before AddImageURL but it didn't make any difference.
Does anyone have any ideas how to fix this ?
Thx
Oenghus
http://www.iafd.com/person.rme/perfid=alishaadams/gender=f/alisha-adams.htm
The current procedure in the script I use is:
procedure ParsePhoto(PhotoURL : String);
begin
LogMessage('PARSING PHOTO...' + PhotoURL);
PhotoURL:=HTMLToText (PhotoURL);
AddImageURL(4,PhotoURL);
end;
PVD log:
PARSING PHOTO...http://www.iafd.com/graphics/headshots/alishaadams_f_alisha adams aalluredotcom hs.jpg
Url di download: Foto
GET: http://www.iafd.com/graphics/headshots/alishaadams_f_alisha adams aalluredotcom hs.jpg
HTTP/1.1 400 Bad Request
I tried replacing spaces in PhotoURL with %20 before AddImageURL but it didn't make any difference.
Does anyone have any ideas how to fix this ?
Thx
Oenghus