mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
fix(chapter): Distinct by url again
This commit is contained in:
parent
1bbfd97b30
commit
834958a819
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ suspend fun syncChaptersWithSource(
|
|||
// Date fetch is set in such a way that the upper ones will have bigger value than the lower ones
|
||||
// Sources MUST return the chapters from most to less recent, which is common.
|
||||
var itemCount = toAdd.size
|
||||
var updatedToAdd = toAdd.map { toAddItem ->
|
||||
var updatedToAdd = toAdd.distinctBy { it.url }.map { toAddItem ->
|
||||
val chapter: Chapter = toAddItem.copy()
|
||||
|
||||
chapter.date_fetch = now + itemCount--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue