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