1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-25 01:06:30 +00:00

Return poster placeholder url when trakt doesn't have one

This commit is contained in:
Mark McDowall 2013-04-05 17:12:50 -07:00
parent 900122c265
commit 28d4010c5c
2 changed files with 7 additions and 0 deletions

View file

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

View file

@ -64,4 +64,9 @@
.folder-name-matches {
padding-left: 20px;
padding-top: 10px;
}
.img-polaroid {
min-width: 138px;
min-height: 203px;
}