fix(sonarr-sync): correctly set series with no seasons to requested status

fixes #762
pull/768/head
sct 4 years ago
parent 1d7150c24e
commit 3812989a1c

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

Loading…
Cancel
Save