A few weeks ago I signed up for the Rovi TV API services, and I've been working to integrate the API with CASTLE /Signal's server so I can more easily access content.
Thanks to Rovi, I have access to three important things: listing schedules, provider-channel lookups, and content info. Schedule and content info is great for making it a useful experience, but provider-channel information is a godsend.
Now I can get the specific channel number linked to the tv schedule content - via the provider-channel lookup service. From there, it's a simple matter of splitting the code and assembling an IR-sequence from the IR codes for every number.