mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
Fixed #2418
This commit is contained in:
parent
c4b21c5f77
commit
2a066e315e
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,10 @@ namespace Ombi.Schedule.Jobs.Sonarr
|
|||
await _ctx.Database.ExecuteSqlCommandAsync("DELETE FROM SonarrEpisodeCache");
|
||||
foreach (var s in sonarrSeries)
|
||||
{
|
||||
if (!s.monitored)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
_log.LogDebug("Syncing series: {0}", s.title);
|
||||
var episodes = await _api.GetEpisodes(s.id, settings.ApiKey, settings.FullUri);
|
||||
var monitoredEpisodes = episodes.Where(x => x.monitored || x.hasFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue