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

View File

@ -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) {