1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-08-01 12:25:53 +02:00

Ignore casing when looking for some files/folders

This commit is contained in:
arkon
2023-11-28 08:59:34 -05:00
parent a74a689c90
commit e41668862f
4 changed files with 4 additions and 5 deletions
app/src/main/java/eu/kanade
presentation
more
settings
tachiyomi
source-local/src/androidMain/kotlin/tachiyomi/source/local

@ -303,8 +303,8 @@ actual class LocalSource(
try {
val (mangaDirName, chapterName) = chapter.url.split('/', limit = 2)
return fileSystem.getBaseDirectory()
?.findFile(mangaDirName)
?.findFile(chapterName)
?.findFile(mangaDirName, true)
?.findFile(chapterName, true)
?.let(Format.Companion::valueOf)
?: throw Exception(context.stringResource(MR.strings.chapter_not_found))
} catch (e: Format.UnknownFormatException) {