mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Force Refresh added to Series Editor
This commit is contained in:
@@ -62,6 +62,16 @@ namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
_jobProvider.QueueJob(typeof(UpdateInfoJob), seriesId);
|
||||
_jobProvider.QueueJob(typeof(DiskScanJob), seriesId);
|
||||
_jobProvider.QueueJob(typeof(RefreshEpisodeMetadata), seriesId);
|
||||
|
||||
return JsonNotificationResult.Queued("Episode update/Disk scan");
|
||||
}
|
||||
|
||||
public JsonResult ForceRefreshAll()
|
||||
{
|
||||
_jobProvider.QueueJob(typeof(UpdateInfoJob));
|
||||
_jobProvider.QueueJob(typeof(DiskScanJob));
|
||||
_jobProvider.QueueJob(typeof(RefreshEpisodeMetadata));
|
||||
|
||||
return JsonNotificationResult.Queued("Episode update/Disk scan");
|
||||
}
|
||||
|
||||
@@ -54,6 +54,13 @@
|
||||
</style>
|
||||
}
|
||||
|
||||
@section ActionMenu
|
||||
{
|
||||
<ul class="sub-menu">
|
||||
<li>@Ajax.ActionLink("Force Refresh", "ForceRefreshAll", "Command", null, null, new { Title = "Refresh episode and series information and scan for new episodes for all series" })</li>
|
||||
</ul>
|
||||
}
|
||||
|
||||
@using (Html.BeginForm("SaveEditor", "Series", FormMethod.Post, new { id = "SeriesEditor", name = "SeriesEditor" }))
|
||||
{
|
||||
<table id ="seriesEditorGrid" class="dataTable dataTablesGrid no-details">
|
||||
|
||||
Reference in New Issue
Block a user