From 7b28614c376f0132d82ee2d7d91f0e985579e133 Mon Sep 17 00:00:00 2001 From: len Date: Thu, 6 Oct 2016 20:02:22 +0200 Subject: [PATCH] Ignore chapters with duplicated name. Fixes #483 --- .../eu/kanade/tachiyomi/ui/manga/chapter/ChaptersFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersFragment.kt index 8180f37b5..318beec43 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersFragment.kt @@ -264,6 +264,7 @@ class ChaptersFragment : BaseRxFragment(), ActionMode.Callbac fun getUnreadChaptersSorted() = presenter.chapters .filter { !it.read && !it.isDownloaded } + .distinctBy { it.name } .sortedByDescending { it.source_order } // i = 0: Download 1