The Free Software Media System - Server Backend & API
Backport pull request #17924 from jellyfin/release-12.z
enter-a-random-usernamef62f3cf9b011
diff --git a/MediaBrowser.Providers/Plugins/Tmdb/TmdbClientManager.cs b/MediaBrowser.Providers/Plugins/Tmdb/TmdbClientManager.csindex 6b1b54ce02..f6fc90380d 100644--- a/MediaBrowser.Providers/Plugins/Tmdb/TmdbClientManager.cs+++ b/MediaBrowser.Providers/Plugins/Tmdb/TmdbClientManager.cs@@ -29,6 +29,14 @@ namespace MediaBrowser.Providers.Plugins.Tmdb// differ in weight by orders of magnitude.private const int CacheSizeLimit = 100_000;+ private static readonly Dictionary<string, string> ThumbnailSizes = new Dictionary<string, string>+ {+ { "Primary", "w500" },+ { "Backdrop", "w780" },+ { "Thumb", "w780" },+ { "Logo", "w500" },+ };+private readonly MemoryCache _memoryCache;private readonly TMDbClient _tmDbClient;@@ -678,6 +686,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdbyield return new RemoteImageInfo{Url = GetUrl(size, image.FilePath),+ ThumbnailUrl = GetUrl(ThumbnailSizes.GetValueOrDefault(type.ToString(), string.Empty), image.FilePath),CommunityRating = image.VoteAverage,VoteCount = image.VoteCount,Width = scaleImage ? null : image.Width,