Jump to content

BaseItem from ILibraryManager is missing properties


Recommended Posts

pünktchen
Posted (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 by pünktchen
Posted

Well start date should definitely be there. Homepageurl is not used at the moment.

pünktchen
Posted

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.

Posted

How are you querying?

pünktchen
Posted
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.

Posted

Try adding program using includeitemtypes.

pünktchen
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...