mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Add series working, Only queue enabled jobs.
This commit is contained in:
parent
66977cd329
commit
b16d85d0fc
@ -120,7 +120,7 @@ protected override void MainDbUpgrade()
|
||||
.WithColumn("Title").AsString().NotNullable()
|
||||
.WithColumn("CleanTitle").AsString().NotNullable()
|
||||
.WithColumn("Status").AsInt32().NotNullable()
|
||||
.WithColumn("Overview").AsString().NotNullable()
|
||||
.WithColumn("Overview").AsString().Nullable()
|
||||
.WithColumn("AirTime").AsString().Nullable()
|
||||
.WithColumn("Language").AsString().NotNullable()
|
||||
.WithColumn("Path").AsString().NotNullable()
|
||||
@ -132,11 +132,11 @@ protected override void MainDbUpgrade()
|
||||
.WithColumn("Runtime").AsInt32().NotNullable()
|
||||
.WithColumn("SeriesType").AsInt32().NotNullable()
|
||||
.WithColumn("BacklogSetting").AsInt32().NotNullable()
|
||||
.WithColumn("Network").AsString().NotNullable()
|
||||
.WithColumn("Network").AsString().Nullable()
|
||||
.WithColumn("CustomStartDate").AsDateTime().Nullable()
|
||||
.WithColumn("UseSceneNumbering").AsBoolean().NotNullable()
|
||||
.WithColumn("TvRageId").AsInt32().Nullable()
|
||||
.WithColumn("TvRageTitle").AsString().NotNullable()
|
||||
.WithColumn("TvRageTitle").AsString().Nullable()
|
||||
.WithColumn("UtcOffSet").AsInt32().NotNullable()
|
||||
.WithColumn("FirstAired").AsDateTime().Nullable()
|
||||
.WithColumn("NextAiring").AsDateTime().Nullable();
|
||||
|
@ -29,7 +29,7 @@ public static void Map()
|
||||
RegisterMappers();
|
||||
|
||||
Mapper.Entity<Config>().RegisterModel("Config");
|
||||
Mapper.Entity<RootFolder>().RegisterModel("RootFolders");
|
||||
Mapper.Entity<RootFolder>().RegisterModel("RootFolders").Ignore(r => r.FreeSpace);
|
||||
|
||||
Mapper.Entity<Indexer>().RegisterModel("IndexerDefinitions");
|
||||
Mapper.Entity<NewznabDefinition>().RegisterModel("NewznabDefinitions");
|
||||
|
@ -33,7 +33,7 @@ public JobDefinition GetDefinition(Type type)
|
||||
|
||||
public IList<JobDefinition> GetPendingJobs()
|
||||
{
|
||||
return Queryable().Where(c => c.Enable == false && c.Interval != 2).ToList().Where(c => c.LastExecution < DateTime.Now.AddMinutes(-c.Interval)).ToList();
|
||||
return Queryable().Where(c => c.Enable == true && c.Interval != 2).ToList().Where(c => c.LastExecution < DateTime.Now.AddMinutes(-c.Interval)).ToList();
|
||||
}
|
||||
|
||||
public void Init()
|
||||
|
@ -122,6 +122,7 @@ public void AddSeries(string title, string path, int tvDbSeriesId, int qualityPr
|
||||
repoSeries.Monitored = true;
|
||||
repoSeries.QualityProfileId = qualityProfileId;
|
||||
repoSeries.Title = title;
|
||||
repoSeries.CleanTitle = Parser.NormalizeTitle(title);
|
||||
if (qualityProfileId == 0)
|
||||
repoSeries.QualityProfileId = _configService.DefaultQualityProfile;
|
||||
|
||||
@ -132,6 +133,9 @@ public void AddSeries(string title, string path, int tvDbSeriesId, int qualityPr
|
||||
if (airedAfter.HasValue)
|
||||
repoSeries.CustomStartDate = airedAfter;
|
||||
|
||||
//Todo: Allow the user to set this as part of the addition process.
|
||||
repoSeries.Language = "en";
|
||||
|
||||
_seriesRepository.Insert(repoSeries);
|
||||
|
||||
_eventAggregator.Publish(new SeriesAddedEvent(repoSeries));
|
||||
|
Loading…
Reference in New Issue
Block a user