1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 01:27:00 +00:00

Run Disk Scan when series path is saved

This commit is contained in:
Mark McDowall 2013-01-13 14:58:42 -08:00
parent 52e49ce879
commit 0297942290

View file

@ -79,6 +79,9 @@ public EmptyResult Edit(SeriesModel seriesModel)
series.Monitored = seriesModel.Monitored; series.Monitored = seriesModel.Monitored;
series.SeasonFolder = seriesModel.SeasonFolder; series.SeasonFolder = seriesModel.SeasonFolder;
series.QualityProfileId = seriesModel.QualityProfileId; series.QualityProfileId = seriesModel.QualityProfileId;
var oldPath = series.Path;
series.Path = seriesModel.Path; series.Path = seriesModel.Path;
series.BacklogSetting = (BacklogSettingType)seriesModel.BacklogSetting; series.BacklogSetting = (BacklogSettingType)seriesModel.BacklogSetting;
@ -90,6 +93,9 @@ public EmptyResult Edit(SeriesModel seriesModel)
_seriesProvider.UpdateSeries(series); _seriesProvider.UpdateSeries(series);
if(oldPath != series.Path)
_jobProvider.QueueJob(typeof(DiskScanJob), new {SeriesId = series.SeriesId});
return new EmptyResult(); return new EmptyResult();
} }