mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
some db/migration cleanup
This commit is contained in:
parent
8424dd6ede
commit
15aedfc847
13 changed files with 76 additions and 130 deletions
|
@ -49,18 +49,13 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
public ActionResult AddNew()
|
||||
{
|
||||
var rootDirs = _rootFolderProvider.GetAll().Select(r =>
|
||||
new RootDirModel
|
||||
{
|
||||
Path = r.Path,
|
||||
CleanPath = r.Path.Replace(Path.DirectorySeparatorChar, '|').Replace(Path.VolumeSeparatorChar, '^').Replace('\'', '`')
|
||||
});
|
||||
ViewData["RootDirs"] = rootDirs.ToList();
|
||||
ViewData["DirSep"] = Path.DirectorySeparatorChar.ToString().Replace(Path.DirectorySeparatorChar, '|');
|
||||
ViewData["RootDirs"] = _rootFolderProvider.GetAll().Select(c => c.Path).OrderBy(e => e).ToList();
|
||||
|
||||
var defaultQuality = _configProvider.DefaultQualityProfile;
|
||||
var qualityProfiles = _qualityProvider.GetAllProfiles();
|
||||
|
||||
ViewData["qualityList"] = qualityProfiles;
|
||||
|
||||
ViewData["quality"] = new SelectList(
|
||||
qualityProfiles,
|
||||
"QualityProfileId",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue