aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/UserViews/DynamicImageProvider.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-12-02 15:52:39 -0500
committerGitHub <noreply@github.com>2016-12-02 15:52:39 -0500
commitd52ee1e6374c47a4460d8069784692cf36693f8c (patch)
treefddc50e09b7eba5c852e63c3e6656466b383c655 /Emby.Server.Implementations/UserViews/DynamicImageProvider.cs
parent494ae8465f5a0d381594873d4f8951778d7616a7 (diff)
parent4a9c77c32713ed0a52597f9abb7313062ef1872f (diff)
Merge pull request #2323 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/UserViews/DynamicImageProvider.cs')
-rw-r--r--Emby.Server.Implementations/UserViews/DynamicImageProvider.cs28
1 files changed, 6 insertions, 22 deletions
diff --git a/Emby.Server.Implementations/UserViews/DynamicImageProvider.cs b/Emby.Server.Implementations/UserViews/DynamicImageProvider.cs
index 09b68c8ea..bef964c6f 100644
--- a/Emby.Server.Implementations/UserViews/DynamicImageProvider.cs
+++ b/Emby.Server.Implementations/UserViews/DynamicImageProvider.cs
@@ -151,17 +151,7 @@ namespace Emby.Server.Implementations.UserViews
string[] collectionStripViewTypes =
{
CollectionType.Movies,
- CollectionType.TvShows,
- CollectionType.Music,
- CollectionType.Games,
- CollectionType.Books,
- CollectionType.MusicVideos,
- CollectionType.HomeVideos,
- CollectionType.BoxSets,
- CollectionType.LiveTv,
- CollectionType.Playlists,
- CollectionType.Photos,
- string.Empty
+ CollectionType.TvShows
};
return collectionStripViewTypes.Contains(view.ViewType ?? string.Empty);
@@ -169,20 +159,14 @@ namespace Emby.Server.Implementations.UserViews
protected override async Task<string> CreateImage(IHasImages item, List<BaseItem> itemsWithImages, string outputPathWithoutExtension, ImageType imageType, int imageIndex)
{
- var outputPath = Path.ChangeExtension(outputPathWithoutExtension, ".png");
-
- var view = (UserView)item;
- if (imageType == ImageType.Primary && IsUsingCollectionStrip(view))
+ if (itemsWithImages.Count == 0)
{
- if (itemsWithImages.Count == 0)
- {
- return null;
- }
-
- return await CreateThumbCollage(item, itemsWithImages, outputPath, 960, 540).ConfigureAwait(false);
+ return null;
}
- return await base.CreateImage(item, itemsWithImages, outputPath, imageType, imageIndex).ConfigureAwait(false);
+ var outputPath = Path.ChangeExtension(outputPathWithoutExtension, ".png");
+
+ return await CreateThumbCollage(item, itemsWithImages, outputPath, 960, 540).ConfigureAwait(false);
}
}
}