diff --git a/FoliCon/Modules/TMDB.cs b/FoliCon/Modules/TMDB.cs index f80a5dd6..e4ef465a 100644 --- a/FoliCon/Modules/TMDB.cs +++ b/FoliCon/Modules/TMDB.cs @@ -209,7 +209,8 @@ public void ResultPicked(dynamic result, string resultType, string fullFolderPat var folderName = Path.GetFileName(fullFolderPath); var localPosterPath = fullFolderPath + @"\" + folderName + ".png"; - string posterUrl = string.Concat(PosterBase, result.PosterPath); + + string posterUrl = string.Concat(PosterBase, result.PosterPath.Replace("http://image.tmdb.org/t/p/w500","")); if (resultType == MediaTypes.Tv) { diff --git a/FoliCon/ViewModels/PosterPickerViewModel.cs b/FoliCon/ViewModels/PosterPickerViewModel.cs index 9672565d..ebd3d235 100644 --- a/FoliCon/ViewModels/PosterPickerViewModel.cs +++ b/FoliCon/ViewModels/PosterPickerViewModel.cs @@ -182,9 +182,11 @@ private async void LoadImages(ImagesWithId images) Index = item.Index + 1; if (image is not null) { - var posterPath = image.FilePath != null ? TmdbObject.GetClient().GetImageUrl(PosterSize.W342, image.FilePath).ToString() : null; + var posterPath = image.FilePath != null ? TmdbObject.GetClient().GetImageUrl(PosterSize.W92, image.FilePath).ToString() : null; + var qualityPath = TmdbObject.GetClient().GetImageUrl(PosterSize.W500, image.FilePath) + .ToString(); //TODO: give user option to set quality of preview. var bm = await Util.GetBitmapFromUrlAsync(posterPath); - ImageUrl.Add(new DArtImageList(posterPath, Util.LoadBitmap(bm))); + ImageUrl.Add(new DArtImageList(qualityPath, Util.LoadBitmap(bm))); bm.Dispose(); } if (_stopSearch)