Add option for bookmarked chapters to download dropdown (#2891)

This commit is contained in:
NarwhalHorns
2026-02-21 10:14:55 +00:00
committed by GitHub
parent ab214526c6
commit 3c6f0f1697
8 changed files with 69 additions and 10 deletions
@@ -0,0 +1,20 @@
package tachiyomi.domain.chapter.interactor
import logcat.LogPriority
import tachiyomi.core.common.util.system.logcat
import tachiyomi.domain.chapter.model.Chapter
import tachiyomi.domain.chapter.repository.ChapterRepository
class GetBookmarkedChaptersByMangaId(
private val chapterRepository: ChapterRepository,
) {
suspend fun await(mangaId: Long): List<Chapter> {
return try {
chapterRepository.getBookmarkedChaptersByMangaId(mangaId)
} catch (e: Exception) {
logcat(LogPriority.ERROR, e)
emptyList()
}
}
}