Skip to content

Commit 54b1148

Browse files
BrutuZcuong-tran
authored andcommitted
Ignore hidden files/folders for Local Source chapter list (mihonapp/mihon#1763)
(cherry picked from commit c97fe71e290604849299f1ebb9dfe1295188ca60)
1 parent c37eac9 commit 54b1148

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
1515
- Add option to always decode long strip images with SSIV
1616
- Added option to enable incognito per extension ([@sdaqo](https://github.com/sdaqo), [@AntsyLich](https://github.com/AntsyLich)) ([#157](https://github.com/mihonapp/mihon/pull/157))
1717

18+
### Changed
19+
- Ignore hidden files/folders for Local Source chapter list ([@BrutuZ](https://github.com/BrutuZ)) ([#1763](https://github.com/mihonapp/mihon/pull/1763))
20+
1821
### Fixed
1922
- Fix MAL `main_picture` nullability breaking search if a result doesn't have a cover set ([@MajorTanya](https://github.com/MajorTanya)) ([#1618](https://github.com/mihonapp/mihon/pull/1618))
2023
- Fix Bangumi and MAL tracking 401 errors due to Mihon sending expired credentials ([@MajorTanya](https://github.com/MajorTanya)) ([#1681](https://github.com/mihonapp/mihon/pull/1681), [#1682](https://github.com/mihonapp/mihon/pull/1682))

source-local/src/androidMain/kotlin/tachiyomi/source/local/LocalSource.kt

+1
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ actual class LocalSource(
330330
override suspend fun getChapterList(manga: SManga): List<SChapter> = withIOContext {
331331
val chapters = fileSystem.getFilesInMangaDirectory(manga.url)
332332
// Only keep supported formats
333+
.filterNot { it.name.orEmpty().startsWith('.') }
333334
.filter { it.isDirectory || Archive.isSupported(it) || it.extension.equals("epub", true) }
334335
.map { chapterFile ->
335336
SChapter.create().apply {

0 commit comments

Comments
 (0)