Jump to content

IRemoteImageProvider and multiple backdrops


Go to solution Solved by Amything,

Recommended Posts

Amything
Posted

Hey,

I'm trying to set multiple backdrops via IRemoteImageProvider 

public Task<IEnumerable<RemoteImageInfo>> GetImages(BaseItem item, LibraryOptions libraryOptions, CancellationToken cancellationToken)
{
    List<string> urls = new List<string>();
    urls.Add("https://dummyimage.com/600x400/000/fff&text=Test+1");
    urls.Add("https://dummyimage.com/600x400/000/fff&text=Test+2");

    List<RemoteImageInfo> images = new List<RemoteImageInfo>();
    foreach (string imageUrl in urls)
    {
        images.Add(new RemoteImageInfo
        {
            Type = ImageType.Backdrop,
            ProviderName = Name,
            Url = imageUrl
        });
    }
    return Task.FromResult<IEnumerable<RemoteImageInfo>>(images);
}

Only 1 backdrop is added. Not sure what I'm doing wrong here.

 

image.png.8b2cdbe530774e21ae35574de698b678.png

  • Solution
Amything
Posted

Posted too soon, found solution. For anyone wondering in the future, it's a library setting. Library > Collections > Fetcher Settings > Maximum number of backdrops per item.

  • Haha 1
  • Thanks 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...