Schedule: AniList entries split within a season (anilist_map, per-episode AniList id) count as on Jellyfin

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
foxyzandClaude Opus 5.5 committed 2026-10-09 17:12:43 +03:00
1 parent ff51d52fbb
commit 9a4b04672b
5 files changed
+53 -5

No files matched your search

@@ -102,6 +102,9 @@ List<ScheduleEntry> matchSchedule(
final lib = <int, (String, int)>{};
for (final item in library) {
if (item.jellyfinSeriesId.isEmpty) continue;
for (final r in item.anilistMap) {
lib[r.anilistId] ??= (item.jellyfinSeriesId, r.season);
}
for (final e in item.anilistIds.entries) {
lib[e.value] ??= (item.jellyfinSeriesId, e.key);
}