mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
Updated IndexerSettingsModel with better descriptions.
Enable checkbox for Indexer is now labeled as such. Removed jscript load for deleted script. A user will now be unable to add a rootDir if the SabDropDir value is the same (ignoring case). A user will also be unable to set their SabDropDir to the same value as an exiting RootDir (Ignoring case). The last two changes prevent users from possibly causing all TV shows to be deleted.
This commit is contained in:
parent
3efe465114
commit
95b4250d5d
5 changed files with 21 additions and 10 deletions
|
@ -153,6 +153,10 @@ namespace NzbDrone.Web.Controllers
|
|||
if (String.IsNullOrWhiteSpace(path))
|
||||
return new JsonResult { Data = "failed" };
|
||||
|
||||
//Don't let a user add a rootDir that is the same as their SABnzbd TV Directory
|
||||
if (path.Equals(_configProvider.SabDropDirectory, StringComparison.InvariantCultureIgnoreCase))
|
||||
return new JsonResult { Data = "failed" };
|
||||
|
||||
try
|
||||
{
|
||||
_rootFolderProvider.Add(new RootDir { Path = path });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue