From b6c9c748cd21da4d6714df7bf4ed526c249abdf5 Mon Sep 17 00:00:00 2001 From: Felix Date: Mon, 15 Jun 2026 08:56:35 +0300 Subject: [PATCH] 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. --- LME.Uaflix/UaflixInvoke.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LME.Uaflix/UaflixInvoke.cs b/LME.Uaflix/UaflixInvoke.cs index d399637..b70b5d4 100644 --- a/LME.Uaflix/UaflixInvoke.cs +++ b/LME.Uaflix/UaflixInvoke.cs @@ -1216,8 +1216,8 @@ namespace LME.Uaflix _onLog($"GetSeasonStructure: Відфільтровано {filteredCount} прем'єрних епізодів із сезону {season}"); if (seasonAvailable.Count == 0) { - _onLog($"GetSeasonStructure: Усі епізоди сезону {season} є прем'єрами, пропускаю"); - continue; + _onLog($"GetSeasonStructure: Усі епізоди сезону {season} є прем'єрами, повертаю null"); + return null; } // Створюємо базовий голос (перший плеєр)