1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 20:12:41 +02:00

Fixed: Don't download unknown artwork

(cherry picked from commit aecc8295c8c3ce39040d03a1f79f775e1c910362)
This commit is contained in:
Mark McDowall 2023-05-22 09:00:36 -07:00 committed by Bogdan
parent f8cb8c6bd8
commit 371eb68bf0
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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);