Return poster placeholder url when trakt doesn't have one

pull/23/head
Mark McDowall 12 years ago
parent 900122c265
commit 28d4010c5c

@ -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;

@ -65,3 +65,8 @@
padding-left: 20px;
padding-top: 10px;
}
.img-polaroid {
min-width: 138px;
min-height: 203px;
}
Loading…
Cancel
Save