mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Don't try to download small version of non-existing poster
This commit is contained in:
parent
6a743a8792
commit
ac4f2d5e9a
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ namespace NzbDrone.Core.MetadataSource
|
||||||
|
|
||||||
private static string GetPosterThumbnailUrl(string posterUrl)
|
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 extension = Path.GetExtension(posterUrl);
|
||||||
var withoutExtension = posterUrl.Substring(0, posterUrl.Length - extension.Length);
|
var withoutExtension = posterUrl.Substring(0, posterUrl.Length - extension.Length);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue