Fixed: Don't download unknown artwork
This commit is contained in:
parent
f2ddd4757c
commit
aecc8295c8
|
@ -9,7 +9,8 @@ namespace NzbDrone.Core.MediaCover
|
|||
Banner = 2,
|
||||
Fanart = 3,
|
||||
Screenshot = 4,
|
||||
Headshot = 5
|
||||
Headshot = 5,
|
||||
Clearart = 6
|
||||
}
|
||||
|
||||
public class MediaCover : IEmbeddedDocument
|
||||
|
|
|
@ -109,11 +109,18 @@ namespace NzbDrone.Core.MediaCover
|
|||
|
||||
foreach (var cover in series.Images)
|
||||
{
|
||||
if (cover.CoverType == MediaCoverTypes.Unknown)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var fileName = GetCoverPath(series.Id, cover.CoverType);
|
||||
var alreadyExists = false;
|
||||
|
||||
try
|
||||
{
|
||||
alreadyExists = _coverExistsSpecification.AlreadyExists(cover.RemoteUrl, fileName);
|
||||
|
||||
if (!alreadyExists)
|
||||
{
|
||||
DownloadCover(series, cover);
|
||||
|
|
Loading…
Reference in New Issue