mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
Fixed parser to properly parse a more common naming convention where the episode title starts with an episode or series/episode combination.
SeriesController SaveEdit and Delete OrderBy Title with articles removed, with episodeCount. Reworded Auto-configure button.
This commit is contained in:
parent
a56213047f
commit
73fadac397
4 changed files with 15 additions and 12 deletions
|
@ -67,7 +67,7 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
_seriesProvider.UpdateSeries(oldSeries);
|
||||
|
||||
var series = GetSeriesModels(_seriesProvider.GetAllSeriesWithEpisodeCount());
|
||||
var series = GetSeriesModels(_seriesProvider.GetAllSeriesWithEpisodeCount()).OrderBy(o => SortHelper.SkipArticles(o.Title));
|
||||
return View(new GridModel(series));
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ namespace NzbDrone.Web.Controllers
|
|||
public ActionResult _DeleteAjaxSeriesEditing(int id)
|
||||
{
|
||||
//Grab the series from the DB so we can remove it from the list we return to the client
|
||||
var seriesInDb = _seriesProvider.GetAllSeries().ToList();
|
||||
var seriesInDb = _seriesProvider.GetAllSeriesWithEpisodeCount().ToList();
|
||||
|
||||
//Remove this so we don't send it back to the client (since it hasn't really been deleted yet)
|
||||
seriesInDb.RemoveAll(s => s.SeriesId == id);
|
||||
|
@ -83,7 +83,7 @@ namespace NzbDrone.Web.Controllers
|
|||
//Start removing this series
|
||||
_jobProvider.QueueJob(typeof(DeleteSeriesJob), id);
|
||||
|
||||
var series = GetSeriesModels(seriesInDb);
|
||||
var series = GetSeriesModels(seriesInDb).OrderBy(o => SortHelper.SkipArticles(o.Title));
|
||||
return View(new GridModel(series));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue