public override void OnDownload(DownloadMessage message) { if (Settings.UpdateLibrary) { foreach (var oldFile in message.OldMovieFiles) { var fullPath = Path.Combine(message.Movie.Path, oldFile.RelativePath); _indexerProxy.DeleteFile(fullPath); } { var fullPath = Path.Combine(message.Movie.Path, message.MovieFile.RelativePath); _indexerProxy.AddFile(fullPath); } } }
public override void OnReleaseImport(AlbumDownloadMessage message) { if (Settings.UpdateLibrary) { foreach (var oldFile in message.OldFiles) { var fullPath = oldFile.Path; _indexerProxy.DeleteFile(fullPath); } foreach (var newFile in message.TrackFiles) { var fullPath = newFile.Path; _indexerProxy.AddFile(fullPath); } } }