mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
only publish import event if an episode is actually imported.
This commit is contained in:
parent
baab8cd838
commit
487ad01a0e
2 changed files with 28 additions and 4 deletions
|
@ -117,7 +117,7 @@ namespace NzbDrone.Core.MediaFiles
|
|||
}
|
||||
}
|
||||
|
||||
public void ProcessVideoFile(string videoFile, Series series)
|
||||
private void ProcessVideoFile(string videoFile, Series series)
|
||||
{
|
||||
var lastWrite = _diskProvider.GetLastFileWrite(videoFile);
|
||||
|
||||
|
@ -138,9 +138,8 @@ namespace NzbDrone.Core.MediaFiles
|
|||
if (episodeFile != null)
|
||||
{
|
||||
_episodeFileMover.MoveEpisodeFile(episodeFile, true);
|
||||
_messageAggregator.PublishEvent(new EpisodeImportedEvent(episodeFile));
|
||||
}
|
||||
|
||||
_messageAggregator.PublishEvent(new EpisodeImportedEvent(episodeFile));
|
||||
}
|
||||
|
||||
public void Execute(DownloadedEpisodesScanCommand message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue