Hi Craig,
The link to the brochure we get in the XML is as follows:
https://salters.10ninety.co.uk/PublicProperty/DisplayBrochure/9
That’s why it’s called 9.pdf in WordPress. We get no reference to the file name you mention (Essex Road Brochure 4.pdf).
As for it not updating, you’re right. I see this too. The reason is because we only import new or updated media. Otherwise we’d be importing the same PDF and images etc over and over each time the import ran.
We try to tell if it’s different/changed or not by looking at the URL provided and comparing it to what we imported the last time the import ran.
So if we import a file with URL https://test.com/123 one time, and then the next time the data is received the URL is https://test.com/456 we know it’s a new/changed PDF.
Now in this case, the PDF isn’t getting a new URL when it’s been updated so we can’t tell it’s changed and therefore don’t import it.
At this time I honestly don’t have a solution for this. The only thing I can think to do is compare filesizes of existing PDF vs the one sent and if the filesizes differ we know it’s changed. This does mean we’d have to download every single brochure though to do this comparison which I’m not keen on (though might not have a choice).
Alternatively, we do have this item on our roadmap (https://trello.com/c/1dpCcDEB) which talks about not even downloading the media to WordPress but instead linking to it on the third parties (i.e. 10ninety) server. That would also solve this but isn’t a quick change.
I’ve waffled on but here’s my conclusion:
Short Term – Manually delete the brochure from WordPress and wait for another import to run. That’ll then bring in the new brochure
Long Term – I look at a more solid solution to this and let you know the outcome.
This is the only format we have this problem with as all other providers either change the filename/URL or provide a data modified we can use.
So do the short term fix mentioned above just to get this one sorted and I’ll have a think about a solution going forward and update this thread once I’ve come up with something.
Steve