pünktchen 1409 Posted August 16, 2021 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.
Luke 42077 Posted August 17, 2021 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.
pünktchen 1409 Posted August 17, 2021 Author 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
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