fix(uaflix): return null for premiere-only seasons

Previously, seasons containing only unreleased premiere episodes were skipped during season structure iteration. This could allow downstream processing to continue without a valid season result.

Return null when every episode in a season is filtered as a premiere, making the no-available-episodes case explicit for callers.
This commit is contained in:
Felix 2026-06-15 08:56:35 +03:00
parent ddcbc3eae8
commit b6c9c748cd

View File

@ -1216,8 +1216,8 @@ namespace LME.Uaflix
_onLog($"GetSeasonStructure: Відфільтровано {filteredCount} прем'єрних епізодів із сезону {season}"); _onLog($"GetSeasonStructure: Відфільтровано {filteredCount} прем'єрних епізодів із сезону {season}");
if (seasonAvailable.Count == 0) if (seasonAvailable.Count == 0)
{ {
_onLog($"GetSeasonStructure: Усі епізоди сезону {season} є прем'єрами, пропускаю"); _onLog($"GetSeasonStructure: Усі епізоди сезону {season} є прем'єрами, повертаю null");
continue; return null;
} }
// Створюємо базовий голос (перший плеєр) // Створюємо базовий голос (перший плеєр)