mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-05 11:01:37 +00:00
fix(trakt): restore recently-added order for Trakt watchlist
The watchlist was being sorted by Trakt rank (ascending), which is the order items were added (oldest first). Restore the previous recently-added-first ordering by sorting on listed-at descending.
This commit is contained in:
parent
09cb8f8277
commit
e22d9d6ffa
1 changed files with 1 additions and 4 deletions
|
|
@ -538,10 +538,7 @@ object TraktLibraryRepository {
|
|||
}
|
||||
return (movieItems + showItems)
|
||||
.mapNotNull(::mapToLibraryItem)
|
||||
.sortedWith(
|
||||
compareBy<LibraryItem> { it.traktRank ?: Int.MAX_VALUE }
|
||||
.thenByDescending { it.savedAtEpochMs },
|
||||
)
|
||||
.sortedByDescending { it.savedAtEpochMs }
|
||||
}
|
||||
|
||||
private suspend fun fetchPersonalListItems(
|
||||
|
|
|
|||
Loading…
Reference in a new issue