mirror of
https://github.com/mihonapp/mihon.git
synced 2025-03-02 19:04:09 +01:00
Ignore hidden files/folders for Local Source chapter list (#1763)
This commit is contained in:
parent
8e81a5e68b
commit
c97fe71e29
@ -15,6 +15,9 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
|||||||
- Add option to always decode long strip images with SSIV
|
- Add option to always decode long strip images with SSIV
|
||||||
- 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))
|
- 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))
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Ignore hidden files/folders for Local Source chapter list ([@BrutuZ](https://github.com/BrutuZ)) ([#1763](https://github.com/mihonapp/mihon/pull/1763))
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- 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))
|
- 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))
|
||||||
- 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))
|
- 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))
|
||||||
|
@ -237,6 +237,7 @@ actual class LocalSource(
|
|||||||
override suspend fun getChapterList(manga: SManga): List<SChapter> = withIOContext {
|
override suspend fun getChapterList(manga: SManga): List<SChapter> = withIOContext {
|
||||||
val chapters = fileSystem.getFilesInMangaDirectory(manga.url)
|
val chapters = fileSystem.getFilesInMangaDirectory(manga.url)
|
||||||
// Only keep supported formats
|
// Only keep supported formats
|
||||||
|
.filterNot { it.name.orEmpty().startsWith('.') }
|
||||||
.filter { it.isDirectory || Archive.isSupported(it) || it.extension.equals("epub", true) }
|
.filter { it.isDirectory || Archive.isSupported(it) || it.extension.equals("epub", true) }
|
||||||
.map { chapterFile ->
|
.map { chapterFile ->
|
||||||
SChapter.create().apply {
|
SChapter.create().apply {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user