mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-18 21:35:27 -04:00
Don't try to download small version of non-existing poster
This commit is contained in:
@@ -187,7 +187,7 @@ namespace NzbDrone.Core.MetadataSource
|
||||
|
||||
private static string GetPosterThumbnailUrl(string posterUrl)
|
||||
{
|
||||
if (posterUrl.Contains("poster-small.jpg")) return posterUrl;
|
||||
if (posterUrl.Contains("poster-small.jpg") || posterUrl.Contains("poster-dark.jpg")) return posterUrl;
|
||||
|
||||
var extension = Path.GetExtension(posterUrl);
|
||||
var withoutExtension = posterUrl.Substring(0, posterUrl.Length - extension.Length);
|
||||
|
||||
Reference in New Issue
Block a user