mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Return poster placeholder url when trakt doesn't have one
This commit is contained in:
@@ -82,6 +82,8 @@ namespace NzbDrone.Core.MetadataSource
|
|||||||
|
|
||||||
private static string GetPosterThumbnailUrl(string posterUrl)
|
private static string GetPosterThumbnailUrl(string posterUrl)
|
||||||
{
|
{
|
||||||
|
if(posterUrl.Contains("poster-small.jpg")) return posterUrl;
|
||||||
|
|
||||||
var extension = Path.GetExtension(posterUrl);
|
var extension = Path.GetExtension(posterUrl);
|
||||||
var withoutExtension = posterUrl.Substring(0, posterUrl.Length - extension.Length);
|
var withoutExtension = posterUrl.Substring(0, posterUrl.Length - extension.Length);
|
||||||
return withoutExtension + "-138" + extension;
|
return withoutExtension + "-138" + extension;
|
||||||
|
|||||||
@@ -64,4 +64,9 @@
|
|||||||
.folder-name-matches {
|
.folder-name-matches {
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-polaroid {
|
||||||
|
min-width: 138px;
|
||||||
|
min-height: 203px;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user