|
|
@ -35,7 +35,6 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
return View();
|
|
|
|
return View();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ActionResult Sync()
|
|
|
|
public ActionResult Sync()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_syncProvider.BeginSyncUnmappedFolders();
|
|
|
|
_syncProvider.BeginSyncUnmappedFolders();
|
|
|
@ -48,13 +47,11 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
return RedirectToAction("Index");
|
|
|
|
return RedirectToAction("Index");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ActionResult UnMapped()
|
|
|
|
public ActionResult UnMapped()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return View(_seriesProvider.GetUnmappedFolders().Select(c => new MappingModel() { Id = 1, Path = c.Value }).ToList());
|
|
|
|
return View(_seriesProvider.GetUnmappedFolders().Select(c => new MappingModel() { Id = 1, Path = c.Value }).ToList());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ActionResult LoadEpisodes(int seriesId)
|
|
|
|
public ActionResult LoadEpisodes(int seriesId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_episodeProvider.RefreshEpisodeInfo(seriesId);
|
|
|
|
_episodeProvider.RefreshEpisodeInfo(seriesId);
|
|
|
@ -64,7 +61,6 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[GridAction]
|
|
|
|
[GridAction]
|
|
|
|
public ActionResult _AjaxSeasonGrid(int seasonId)
|
|
|
|
public ActionResult _AjaxSeasonGrid(int seasonId)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -80,8 +76,6 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
return View(new GridModel(episodes));
|
|
|
|
return View(new GridModel(episodes));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[GridAction]
|
|
|
|
[GridAction]
|
|
|
|
public ActionResult _CustomBinding(GridCommand command, int seasonId)
|
|
|
|
public ActionResult _CustomBinding(GridCommand command, int seasonId)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -163,12 +157,9 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
return RedirectToAction("UnMapped");
|
|
|
|
return RedirectToAction("UnMapped");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ActionResult Details(int seriesId)
|
|
|
|
public ActionResult Details(int seriesId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return View(_seriesProvider.GetSeries(seriesId));
|
|
|
|
return View(_seriesProvider.GetSeries(seriesId));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|