fix: entry handling in TraktProgressRepository

This commit is contained in:
tapframe 2026-05-25 18:21:50 +05:30
parent 765c6d4dbe
commit 78948e8b45

View file

@ -638,7 +638,9 @@ object TraktProgressRepository {
shouldStop = true
continue
}
resultsByShow.putIfAbsent(entry.parentMetaId, entry)
if (!resultsByShow.containsKey(entry.parentMetaId)) {
resultsByShow[entry.parentMetaId] = entry
}
if (resultsByShow.size >= MAX_RECENT_EPISODE_HISTORY_ENTRIES) {
shouldStop = true
break