Tribune is now directing *ALL* traffic to our SD-DD server. We don't know how long Tribune will keep their DNS active, so you should still change your applications.
The best way to use the new SD-DD service is by updating your application. In your code, replace the two TMS hostnames with "dd.schedulesdirect.org".
- Code: Select all
If you can't update your application, edit your local system hosts file to "trick" the network. (no application changes necessary!) The problem with this solution, is should we change IPs (not planned), a future change will be needed.
On Unix/Linux/Mac edit /etc/hosts (superuser required).
On Windows, edit %SYSTEMROOT%\system32\drivers\etc (normally c:\windows\..., (admin rights required, make sure your editor doesn't add ".TXT)
Add this line:
- Code: Select all
188.8.131.52 docs.tms.tribune.com webservices.schedulesdirect.tmsdatadirect.com
- Expiration Date may be slightly different. (This was caused by a bug in the SD web app, now fixed)
- Data is only updated daily. If you want frequent updates, switch to JSON!
- Some shows may be missing from the start of the request window. TMS DD always starts with "what's on now". The new service reports "what's on now, but only looks 4 hours before the start time. So if a show started 4 hours before the start of the request, it won't be in the data. I don't think this matters in practice (it would be in a previous day's grab), but makes diff testing a bit harder.
- Items are in a different order. It doesn't matter to apps, but does make doing a diff harder. Sorry.
- SD-DD has effectively 13 days of data (less if there are data problems, which sometimes sometimes)
- I've added a firewall block for excessive downloads. Some apps get an error and retry immediately causing 1000's of requests per day.
- Fake postal codes are not supported (international). SD-JSON has international support