pünktchen 1261 Posted August 16, 2021 Share Posted August 16, 2021 How can i get all live tv channels, no matter if they are from a live tv plugin or from the internal tv engine, as a result of type "ChannelInfo"? I know how to get the channels by querying the ILibraryManager, but that returns BaseItem and BaseItem has no channel number! But the channel number is what i'm really after here. Link to comment Share on other sites More sharing options...
Luke 37246 Posted August 17, 2021 Share Posted August 17, 2021 Have you tried casting the resulting items to LiveTvChannel? From there you can get additional properties such as the Number property. Link to comment Share on other sites More sharing options...
pünktchen 1261 Posted August 17, 2021 Author Share Posted August 17, 2021 (edited) LiveTvChannel target = (LiveTvChannel)source; Never thought of such a simple thing like casting and LiveTvChannel instead of ChannelInfo. Working. Thanks! Edited August 17, 2021 by pünktchen 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now