mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 02:22:31 +01:00
Return poster placeholder url when trakt doesn't have one
This commit is contained in:
parent
900122c265
commit
28d4010c5c
@ -82,6 +82,8 @@ private static Episode MapEpisode(Trakt.Episode traktEpisode)
|
||||
|
||||
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;
|
||||
|
@ -64,4 +64,9 @@
|
||||
.folder-name-matches {
|
||||
padding-left: 20px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.img-polaroid {
|
||||
min-width: 138px;
|
||||
min-height: 203px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user