mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Added Season Monitored editor (linked from Season Count on Series Grid), It would be under AJAX Edit, but it won't play nice with lists.
Editor should support about 40 seasons without scrolling (TvDb doesn't list all seasons for large series) Removed &pp=3 from SabProvider (it will use SAB's configured Post Processing value).
This commit is contained in:
@@ -44,6 +44,16 @@ namespace NzbDrone.Web.Controllers
|
||||
_diskProvider = diskProvider;
|
||||
}
|
||||
|
||||
public ActionResult Test()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult TestPartial()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult Index(string viewName)
|
||||
{
|
||||
if (viewName != null)
|
||||
@@ -317,29 +327,6 @@ namespace NzbDrone.Web.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
public ActionResult AutoCompletePath(string path)
|
||||
{
|
||||
var windowsSep = path.LastIndexOf('\\');
|
||||
|
||||
if (windowsSep > -1)
|
||||
{
|
||||
var start = path.Substring(windowsSep + 1);
|
||||
var dirs = _diskProvider.GetDirectories(path.Substring(0, windowsSep + 1)).Where(d => new DirectoryInfo(d).Name.ToLower().StartsWith(start.ToLower()));
|
||||
return Content(String.Join("\n", dirs));
|
||||
}
|
||||
|
||||
var index = path.LastIndexOf('/');
|
||||
|
||||
if (index > -1)
|
||||
{
|
||||
var start = path.Substring(index + 1);
|
||||
var dirs = _diskProvider.GetDirectories(path.Substring(0, index + 1)).Where(d => new DirectoryInfo(d).Name.ToLower().StartsWith(start.ToLower()));
|
||||
return Content(String.Join("\n", dirs));
|
||||
}
|
||||
|
||||
return Content("");
|
||||
}
|
||||
|
||||
public JsonResult JsonAutoCompletePath(string term)
|
||||
{
|
||||
var windowsSep = term.LastIndexOf('\\');
|
||||
|
Reference in New Issue
Block a user