1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Log if ParsedMovieInfo is NULL.

This commit is contained in:
Leonardo Galli 2017-04-11 19:31:33 +02:00
parent 8765155223
commit 712c0eb84a

View File

@ -226,7 +226,12 @@ private void Insert(DownloadDecision decision)
Title = decision.RemoteMovie.Release.Title,
Added = DateTime.UtcNow
};
_repository.Insert(release);
if (release.ParsedMovieInfo == null)
{
_logger.Warn("Pending release {0} does not have ParsedMovieInfo, will cause issues.", release.Title);
}
_repository.Insert(release);
_eventAggregator.PublishEvent(new PendingReleasesUpdatedEvent());
}