diff --git a/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs b/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs index b98dd2c49..d6a94210c 100644 --- a/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs +++ b/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs @@ -238,7 +238,7 @@ namespace MediaBrowser.Server.Implementations.UserViews return collectionStripViewTypes.Contains(view.ViewType ?? string.Empty); } - protected override Task CreateImageAsync(IHasImages item, List itemsWithImages, ImageType imageType, int imageIndex) + protected override async Task CreateImageAsync(IHasImages item, List itemsWithImages, ImageType imageType, int imageIndex) { var view = (UserView)item; if (imageType == ImageType.Primary && IsUsingCollectionStrip(view)) @@ -249,10 +249,10 @@ namespace MediaBrowser.Server.Implementations.UserViews } var stream = new StripCollageBuilder(ApplicationPaths).BuildThumbCollage(GetStripCollageImagePaths(itemsWithImages, view.ViewType), item.Name, 960, 540); - return Task.FromResult(stream); + return stream; } - return base.CreateImageAsync(item, itemsWithImages, imageType, imageIndex); + return await base.CreateImageAsync(item, itemsWithImages, imageType, imageIndex); } private IEnumerable GetStripCollageImagePaths(IEnumerable items, string viewType)