Ignore casing when looking for some files/folders

(cherry picked from commit e41668862f6d3362d7de030692d052ae653364e3)
This commit is contained in:
arkon
2023-11-28 08:59:34 -05:00
committed by Jobobby04
parent c2d2295149
commit 44fb882654
4 changed files with 4 additions and 5 deletions
@@ -385,8 +385,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) {