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

fixes #762
This commit is contained in:
sct
2021-01-28 10:35:42 +00:00
parent 1d7150c24e
commit 3812989a1c

View File

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