mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
User configurable RSS Sync Time
New: RSS Sync Interval is now user configurable (Default 25 minutes)
This commit is contained in:
parent
23f8f534fc
commit
8280561e11
9 changed files with 84 additions and 7 deletions
|
@ -96,7 +96,9 @@ namespace NzbDrone.Core.Jobs
|
|||
|
||||
jobDefinition.Enable = job.DefaultInterval.TotalSeconds > 0;
|
||||
jobDefinition.Name = job.Name;
|
||||
|
||||
jobDefinition.Interval = Convert.ToInt32(job.DefaultInterval.TotalMinutes);
|
||||
//Todo: Need to have a way for users to change this and not have it overwritten on start-up.
|
||||
|
||||
SaveDefinition(jobDefinition);
|
||||
}
|
||||
|
@ -196,6 +198,11 @@ namespace NzbDrone.Core.Jobs
|
|||
return true;
|
||||
}
|
||||
|
||||
public virtual JobDefinition GetDefinition(Type type)
|
||||
{
|
||||
return _database.Single<JobDefinition>("WHERE TypeName = @0", type.ToString());
|
||||
}
|
||||
|
||||
private void ProcessQueue()
|
||||
{
|
||||
try
|
||||
|
@ -321,7 +328,5 @@ namespace NzbDrone.Core.Jobs
|
|||
logger.Trace("resetting queue processor thread");
|
||||
_jobThread = new Thread(ProcessQueue) { Name = "JobQueueThread" };
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue