From 6597d60ed98dac170e5fd87509566cc33bf57e10 Mon Sep 17 00:00:00 2001 From: a-n710 <49003059+a-n710@users.noreply.github.com> Date: Wed, 5 Aug 2026 08:48:37 +0900 Subject: [PATCH] Ensure consistent selection of cover language for MangaDex provider --- .../kotlin/snd/komf/providers/mangadex/MangaDexMetadataMapper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/komf-core/src/commonMain/kotlin/snd/komf/providers/mangadex/MangaDexMetadataMapper.kt b/komf-core/src/commonMain/kotlin/snd/komf/providers/mangadex/MangaDexMetadataMapper.kt index dce77434..9226b4e6 100644 --- a/komf-core/src/commonMain/kotlin/snd/komf/providers/mangadex/MangaDexMetadataMapper.kt +++ b/komf-core/src/commonMain/kotlin/snd/komf/providers/mangadex/MangaDexMetadataMapper.kt @@ -206,6 +206,7 @@ class MangaDexMetadataMapper( val books = covers .filter { it.attributes.locale in coverLanguages } + .sortedBy { coverLanguages.indexOf(it.attributes.locale) } .groupBy { it.attributes.volume }.values .map { coverArtToBook(it.first()) }