Jump to content

How to get the image tags of an item through the c# .net library?


Recommended Posts

Posted

For example:

var item = libraryManager.GetItemById(Guid.Parse(itemId));

var dto = new BaseItemDto
{

 ImageTags = 
 BackdropImageTags 

}

How would I grab the image tags for that item?

similarly:

if (item is Episode episode)
{
    dto.ParentBackdropItemId = episode.Series.Id.ToString();
    //dto.BackdropImageTags
    //dto.PrimaryImageTag = 
}

How would I grab the image tags if its an episode?

Posted

@Daicaif you want to get the same object that emby clients use then the best thing to do is use IDtoService.GetBaseItemDto

This will include the image tags, among other things.

  • Like 1

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...