mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Fixed: Don't download unknown artwork
(cherry picked from commit aecc8295c8c3ce39040d03a1f79f775e1c910362)
This commit is contained in:
parent
f8cb8c6bd8
commit
371eb68bf0
@ -10,7 +10,8 @@ public enum MediaCoverTypes
|
||||
Banner = 2,
|
||||
Fanart = 3,
|
||||
Screenshot = 4,
|
||||
Headshot = 5
|
||||
Headshot = 5,
|
||||
Clearart = 6
|
||||
}
|
||||
|
||||
public class MediaCover : MemberwiseEquatable<MediaCover>, IEmbeddedDocument
|
||||
|
@ -147,11 +147,18 @@ private bool EnsureCovers(Movie movie)
|
||||
|
||||
foreach (var cover in movie.MovieMetadata.Value.Images)
|
||||
{
|
||||
if (cover.CoverType == MediaCoverTypes.Unknown)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var fileName = GetCoverPath(movie.Id, cover.CoverType);
|
||||
var alreadyExists = false;
|
||||
|
||||
try
|
||||
{
|
||||
alreadyExists = _coverExistsSpecification.AlreadyExists(cover.Url, fileName);
|
||||
|
||||
if (!alreadyExists)
|
||||
{
|
||||
DownloadCover(movie, cover);
|
||||
|
Loading…
Reference in New Issue
Block a user