How to list programs on a channel (1 Viewer)

smursfter

Portal Pro
August 16, 2009
69
2
Home Country
England England
Hey guys,

thought I'd have a dabble in the mediaportal development world.

Im currently trying to make a small app for listing tv channels, what groups there in and what programs are on each channel.

I can list the groups and channels just fine. but I can seem to find a way of list programs on a selected channel.
Can any1 point me in the right direction?

Cheers
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    Hi smursfter

    If you're using existing code then the public IList<Program> GetPrograms(Channel channel, DateTime startTime) function in the TvBusinessLayer should do what you want. Otherwise, just run a query like:

    Code:
    SELECT * FROM program WHERE idChannel = <id for channel of interest>

    mm
     

    Users who are viewing this thread

    Top Bottom