Ignore hidden files/folders for Local Source chapter list (#1763)

This commit is contained in:
BrutuZ
2025-02-23 01:55:03 -03:00
committed by GitHub
parent 8e81a5e68b
commit c97fe71e29
2 changed files with 4 additions and 0 deletions

View File

@ -237,6 +237,7 @@ actual class LocalSource(
override suspend fun getChapterList(manga: SManga): List<SChapter> = withIOContext {
val chapters = fileSystem.getFilesInMangaDirectory(manga.url)
// Only keep supported formats
.filterNot { it.name.orEmpty().startsWith('.') }
.filter { it.isDirectory || Archive.isSupported(it) || it.extension.equals("epub", true) }
.map { chapterFile ->
SChapter.create().apply {