pünktchen 1241 Posted October 9, 2019 Share Posted October 9, 2019 (edited) Hi @Luke, you already know about my current project and i need your help with it. What's the best way to query Emby for live tv programs from within a .NET plugin? Right now i'm using "ILibraryManager" with "GetItemList" and i can filter for all programs for a live tv channel, but the returned "BaseItems" are missing some properties from "ProgramInfo": "StartDate", "HomePageUrl" and "ShowId" Edited October 9, 2019 by pünktchen Link to comment Share on other sites More sharing options...
Luke 36881 Posted October 9, 2019 Share Posted October 9, 2019 Well start date should definitely be there. Homepageurl is not used at the moment. Link to comment Share on other sites More sharing options...
pünktchen 1241 Posted October 9, 2019 Author Share Posted October 9, 2019 Well start date should definitely be there. Unfortunately it's not. But that's one of the more important properties for me. Homepageurl is not used at the moment. I know it's not used in any app, that's why i wanted to abuse it to store some other things. Link to comment Share on other sites More sharing options...
Luke 36881 Posted October 9, 2019 Share Posted October 9, 2019 How are you querying? Link to comment Share on other sites More sharing options...
pünktchen 1241 Posted October 9, 2019 Author Share Posted October 9, 2019 var channelItems = _libraryManager.GetItemList(new InternalItemsQuery { ExternalId = channelId //live tv channel id }); var programItems = _libraryManager.GetItemList(new InternalItemsQuery { IsVirtualItem = true, ParentIds = new[] { channelItems[0].InternalId }, MinEndDate = DateTimeOffset.Now.ToUniversalTime(), }); _libraryManager implements the ILibraryManager interface. Link to comment Share on other sites More sharing options...
Luke 36881 Posted October 10, 2019 Share Posted October 10, 2019 Try adding program using includeitemtypes. Link to comment Share on other sites More sharing options...
pünktchen 1241 Posted October 11, 2019 Author Share Posted October 11, 2019 This is what i've found out: If i query ILibraryManager i get a BaseItem with ExternalId but no StartDate. If i query ILiveTvManager i get a BaseItemDto with StartDate but no ExternalId. I'm moving around in circles somehow. 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