fix: skip specials in playback order

close #601
This commit is contained in:
edde746
2026-03-02 07:32:20 +01:00
parent 229d6b24e1
commit 5f1c51ff6c
3 changed files with 13 additions and 3 deletions
+5 -2
View File
@@ -1677,8 +1677,11 @@ class _MediaDetailScreenState extends State<MediaDetailScreen> with WatchStateAw
return;
}
// Get the first season (usually Season 1, but could be Season 0 for specials)
final firstSeason = _seasons.first;
// Skip Season 0 (Specials) — prefer the first regular season
final firstSeason = _seasons.firstWhere(
(s) => (s.index ?? 0) > 0,
orElse: () => _seasons.first,
);
// Get episodes of the first season
List<PlexMetadata> episodes;