From 28d4010c5c6b833e7981091aaee3022484a19449 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 5 Apr 2013 17:12:50 -0700 Subject: [PATCH] Return poster placeholder url when trakt doesn't have one --- NzbDrone.Core/MetadataSource/TraktProxy.cs | 2 ++ UI/AddSeries/addSeries.css | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/NzbDrone.Core/MetadataSource/TraktProxy.cs b/NzbDrone.Core/MetadataSource/TraktProxy.cs index 1730f777d..951c38772 100644 --- a/NzbDrone.Core/MetadataSource/TraktProxy.cs +++ b/NzbDrone.Core/MetadataSource/TraktProxy.cs @@ -82,6 +82,8 @@ namespace NzbDrone.Core.MetadataSource private static string GetPosterThumbnailUrl(string posterUrl) { + if(posterUrl.Contains("poster-small.jpg")) return posterUrl; + var extension = Path.GetExtension(posterUrl); var withoutExtension = posterUrl.Substring(0, posterUrl.Length - extension.Length); return withoutExtension + "-138" + extension; diff --git a/UI/AddSeries/addSeries.css b/UI/AddSeries/addSeries.css index 5f92227af..e34dc7403 100644 --- a/UI/AddSeries/addSeries.css +++ b/UI/AddSeries/addSeries.css @@ -64,4 +64,9 @@ .folder-name-matches { padding-left: 20px; padding-top: 10px; +} + +.img-polaroid { + min-width: 138px; + min-height: 203px; } \ No newline at end of file