mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-06-17 12:08:54 +00:00
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:
parent
ddcbc3eae8
commit
b6c9c748cd
@ -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;
|
||||
}
|
||||
|
||||
// Створюємо базовий голос (перший плеєр)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user