Fixed: Don't download unknown artwork

This commit is contained in:
Mark McDowall 2023-05-22 09:00:36 -07:00
parent f2ddd4757c
commit aecc8295c8
2 changed files with 9 additions and 1 deletions

View File

@ -9,7 +9,8 @@ namespace NzbDrone.Core.MediaCover
Banner = 2, Banner = 2,
Fanart = 3, Fanart = 3,
Screenshot = 4, Screenshot = 4,
Headshot = 5 Headshot = 5,
Clearart = 6
} }
public class MediaCover : IEmbeddedDocument public class MediaCover : IEmbeddedDocument

View File

@ -109,11 +109,18 @@ namespace NzbDrone.Core.MediaCover
foreach (var cover in series.Images) foreach (var cover in series.Images)
{ {
if (cover.CoverType == MediaCoverTypes.Unknown)
{
continue;
}
var fileName = GetCoverPath(series.Id, cover.CoverType); var fileName = GetCoverPath(series.Id, cover.CoverType);
var alreadyExists = false; var alreadyExists = false;
try try
{ {
alreadyExists = _coverExistsSpecification.AlreadyExists(cover.RemoteUrl, fileName); alreadyExists = _coverExistsSpecification.AlreadyExists(cover.RemoteUrl, fileName);
if (!alreadyExists) if (!alreadyExists)
{ {
DownloadCover(series, cover); DownloadCover(series, cover);