mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Fixed some petapoco issue with insert.
This commit is contained in:
parent
5a4e8330b2
commit
861026f743
6 changed files with 4 additions and 70 deletions
|
@ -269,37 +269,7 @@ namespace NzbDrone.Web.Controllers
|
|||
}
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult SaveGeneral(SettingsModel data)
|
||||
{
|
||||
var basicNotification = new BasicNotification();
|
||||
basicNotification.Type = BasicNotificationType.Info;
|
||||
basicNotification.AutoDismiss = true;
|
||||
|
||||
try
|
||||
{
|
||||
foreach (var dir in data.Directories)
|
||||
{
|
||||
_rootDirProvider.Update(dir);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Debug("Failed to save Root Dirs");
|
||||
Logger.DebugException(ex.Message, ex);
|
||||
|
||||
basicNotification.Title = SETTINGS_FAILED;
|
||||
_notificationProvider.Register(basicNotification);
|
||||
return Content(SETTINGS_FAILED);
|
||||
}
|
||||
|
||||
|
||||
basicNotification.Title = SETTINGS_SAVED;
|
||||
_notificationProvider.Register(basicNotification);
|
||||
|
||||
return Content(SETTINGS_SAVED);
|
||||
}
|
||||
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult SaveIndexers(IndexerSettingsModel data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue