fix: resolve AniList playback using exact MAL mappings

This commit is contained in:
2026-10-25 19:24:21 +01:00
parent b95f7d251e
commit 7052fe29af
5 changed files with 116 additions and 40 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ struct SourceCheckChecks {
throw Failure()
}
// Exercise error classification, not fake provider availability. Live proof uses the actual CLI below.
for category in [ZokoError.unavailable, .transport, .protection, .malformed] {
for category in [ZokoError.unavailable, .transport, .protection, .malformed, .mapping] {
let result = await SourceCheck.run(mediaID: "1", episode: 1, resolve: { _, _ in throw category },
validate: { _ in throw Failure() })
try require(result == (category == .unavailable ? .unavailable : .failed), "only explicit missing episode is unavailable")