mirror of
https://github.com/Radarr/Radarr
synced 2024-12-27 02:09:59 +00:00
Preventing more errors when move fails
This commit is contained in:
parent
a4d6851be1
commit
2df51615b7
1 changed files with 7 additions and 0 deletions
|
@ -68,6 +68,13 @@ public List<ImportDecision> Import(List<ImportDecision> decisions, bool newDownl
|
||||||
if (newDownload)
|
if (newDownload)
|
||||||
{
|
{
|
||||||
episodeFile = _episodeFileUpgrader.UpgradeEpisodeFile(episodeFile, localEpisode);
|
episodeFile = _episodeFileUpgrader.UpgradeEpisodeFile(episodeFile, localEpisode);
|
||||||
|
|
||||||
|
if (episodeFile == null)
|
||||||
|
{
|
||||||
|
_logger.Error("Failed to move [{0}], aborting processing", localEpisode);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
_messageAggregator.PublishEvent(new EpisodeImportedEvent(episodeFile));
|
_messageAggregator.PublishEvent(new EpisodeImportedEvent(episodeFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue