Thank you so much Easy! God bless you!
It just looks that custom field piece of code has to come at the beginning of ~url section:
//Get ~url~
AddCustomFieldValueByName('FilmAffinity.com', '<link url="'+ StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False)+ '">FilmAffinity.com</link>'); if (0=Pos(BASE_URL,StoredURL)) then begin //Write the url if not exists (Spanish or english)
AddFieldValueXML('url',StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False));
LogMessage(' Get result url:'+StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False)+'||');
end;
This is how it works flawlessly. Thanks again!