Skip to content

Commit

Permalink
fix(sonarr-sync): correctly set series with no seasons to requested s…
Browse files Browse the repository at this point in the history
…tatus

fixes #762
  • Loading branch information
sct committed Jan 28, 2021
1 parent 1d7150c commit 3812989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/job/sonarrsync/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class JobSonarrSync {
newSeasons.filter(
(s) => s[server4k ? 'status4k' : 'status'] === MediaStatus.AVAILABLE
).length >=
filteredSeasons.length;
filteredSeasons.length && filteredSeasons.length > 0;

if (media) {
media.seasons = [...media.seasons, ...newSeasons];
Expand Down

0 comments on commit 3812989

Please sign in to comment.