mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
TimerProvider will test every 1 minute to see if it matches a schedule for updating season or entire series.
Countdown now shows a real value from RSS Sync. CentralDispatch updated to start RSSSyncTimer when run.
This commit is contained in:
parent
fd4cf86694
commit
0fc75e8907
4 changed files with 75 additions and 13 deletions
|
@ -3,13 +3,18 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using NzbDrone.Core.Providers;
|
||||
|
||||
namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
public class SharedController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Shared/
|
||||
private ITimerProvider _timerProvider;
|
||||
|
||||
public SharedController(ITimerProvider timerProvider)
|
||||
{
|
||||
_timerProvider = timerProvider;
|
||||
}
|
||||
|
||||
public ActionResult Index()
|
||||
{
|
||||
|
@ -19,7 +24,8 @@ namespace NzbDrone.Web.Controllers
|
|||
[ChildActionOnly]
|
||||
public ActionResult Footer()
|
||||
{
|
||||
ViewData["RssTimer"] = DateTime.Now.AddMinutes(61).AddSeconds(10).ToString("yyyyMMddHHmmss");
|
||||
ViewData["RssTimer"] = _timerProvider.NextRssSyncTime().ToString("yyyyMMddHHmmss");
|
||||
//ViewData["RssTimer"] = DateTime.Now.AddMinutes(61).AddSeconds(10).ToString("yyyyMMddHHmmss");
|
||||
return PartialView();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue