mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Kick subs fix, dedup fix
This commit is contained in:
parent
502602e27a
commit
f3fa208680
3 changed files with 3 additions and 3 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue