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,
|
Banner = 2,
|
||||||
Fanart = 3,
|
Fanart = 3,
|
||||||
Screenshot = 4,
|
Screenshot = 4,
|
||||||
Headshot = 5
|
Headshot = 5,
|
||||||
|
Clearart = 6
|
||||||
}
|
}
|
||||||
|
|
||||||
public class MediaCover : IEmbeddedDocument
|
public class MediaCover : IEmbeddedDocument
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue