Kick subs fix, dedup fix

This commit is contained in:
Kelvin 2023-11-22 18:04:29 +01:00
parent 502602e27a
commit f3fa208680
3 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ class DedupContentPager : IPager<IPlatformContent>, IAsyncPager<IPlatformContent
val sameItems = results.filter { isSameItem(result, it) };
val platformItemMap = sameItems.groupBy { it.id.pluginId }.mapValues { (_, items) -> items.first() }
val bestPlatform = _preferredPlatform.map { it.lowercase() }.firstOrNull { platformItemMap.containsKey(it) }
val bestItem = platformItemMap[bestPlatform] ?: sameItems.first()
val bestItem = platformItemMap[bestPlatform] ?: sameItems.firstOrNull();
resultsToRemove.addAll(sameItems.filter { it != bestItem });
}

@ -1 +1 @@
Subproject commit 12b84d2ff179f9f4940c4232859b59b57e37fdc6
Subproject commit 396dd16987fba87e6f455a900426a5d7f22cbde3

@ -1 +1 @@
Subproject commit 12b84d2ff179f9f4940c4232859b59b57e37fdc6
Subproject commit 396dd16987fba87e6f455a900426a5d7f22cbde3