1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Don't try to download small version of non-existing poster

This commit is contained in:
Keivan Beigi 2014-10-03 23:06:50 -07:00
parent 6a743a8792
commit ac4f2d5e9a

View File

@ -187,7 +187,7 @@ private static Episode MapEpisode(Trakt.Episode traktEpisode)
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);