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

(cherry picked from commit c97fe71e290604849299f1ebb9dfe1295188ca60)

# Conflicts:
#	CHANGELOG.md
This commit is contained in:
BrutuZ 2025-02-23 01:55:03 -03:00 committed by Jobobby04
parent 10844339b8
commit cda87a5c07

View File

@ -328,6 +328,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 {