fix(sonarr): fixes seasons not being monitored

fix #160, re #153
This commit is contained in:
Tom Wheeler
2025-11-28 00:28:03 +13:00
parent 07f6ac174f
commit d015ca2703
@@ -719,7 +719,8 @@ export class DirectDownloadService {
const seasonCount = await missingItemFilterService.getTvSeasonCount(
item.tmdbId
);
let seasonsToMonitor = Math.min(seasonCount, maxSeasons);
let seasonsToMonitor =
maxSeasons > 0 ? Math.min(seasonCount, maxSeasons) : seasonCount;
// Apply seasonsPerShowLimit if configured
if (config.seasonsPerShowLimit && config.seasonsPerShowLimit > 0) {