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

#4506
pull/4541/head
tidusjar 3 years ago
parent cb8a0ff632
commit 60cfd41f68

@ -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: |

@ -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;

Loading…
Cancel
Save