mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Return poster placeholder url when trakt doesn't have one
This commit is contained in:
parent
900122c265
commit
28d4010c5c
2 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue