Renamed Folder to FolderName. Series.Path is readonly

This commit is contained in:
Mark McDowall 2013-04-11 08:28:08 -07:00
commit e43cb87620
9 changed files with 32 additions and 21 deletions

View file

@ -75,9 +75,10 @@ namespace NzbDrone.Api.Series
series.SeasonFolder = request.SeasonFolder;
series.QualityProfileId = request.QualityProfileId;
var oldPath = series.Path;
//Todo: Do we want to force a scan when this path changes? Can we use events instead?
series.RootFolderId = request.RootFolderId;
series.FolderName = request.FolderName;
series.Path = request.Path;
series.BacklogSetting = (BacklogSettingType)request.BacklogSetting;
if (!String.IsNullOrWhiteSpace(request.CustomStartDate))
@ -88,11 +89,6 @@ namespace NzbDrone.Api.Series
_seriesRepository.Update(series);
if (oldPath != series.Path)
_jobProvider.Enqueue(typeof(DiskScanJob), new { SeriesId = series.Id });
_seriesRepository.Update(series);
return request.AsResponse();
}