1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-24 16:53:54 +00:00

Preventing more errors when move fails

This commit is contained in:
Mark McDowall 2013-08-12 00:12:05 -07:00
parent a4d6851be1
commit 2df51615b7

View file

@ -68,6 +68,13 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
if (newDownload)
{
episodeFile = _episodeFileUpgrader.UpgradeEpisodeFile(episodeFile, localEpisode);
if (episodeFile == null)
{
_logger.Error("Failed to move [{0}], aborting processing", localEpisode);
continue;
}
_messageAggregator.PublishEvent(new EpisodeImportedEvent(episodeFile));
}