fix(Sonarr): 🐛 Fixed an issue where some seasons were not being monitored correctly in sonarr

#4506
This commit is contained in:
tidusjar 2022-03-05 21:35:23 +00:00
parent cb8a0ff632
commit 60cfd41f68
2 changed files with 4 additions and 1 deletions

View file

@ -190,7 +190,8 @@ jobs:
if: contains(github.ref, 'develop')
with:
prerelease: true
body: ${{ needs.versioning.outputs.changelog }}
generate_release_notes: true
# body: ${{ needs.versioning.outputs.changelog }}
name: ${{ needs.versioning.outputs.tag }}
tag_name: ${{ needs.versioning.outputs.tag }}
files: |

View file

@ -357,6 +357,8 @@ namespace Ombi.Core.Senders
episodesToUpdate.Add(sonarrEp);
}
}
existingSeason = result.seasons.FirstOrDefault(x => x.seasonNumber == season.SeasonNumber);
var sonarrEpisodeList = sonarrEpList.Where(x => x.seasonNumber == season.SeasonNumber).ToList();
var sonarrEpCount = sonarrEpisodeList.Count;
var ourRequestCount = season.Episodes.Count;