mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-06 07:57:51 +02:00
Handle file names with multiple ".cbz" occurrences properly
Fixes #8838
This commit is contained in:
@ -312,7 +312,7 @@ class DownloadCache(
|
|||||||
// Folder of images
|
// Folder of images
|
||||||
it.isDirectory -> it.name
|
it.isDirectory -> it.name
|
||||||
// CBZ files
|
// CBZ files
|
||||||
it.isFile && it.name?.endsWith(".cbz") == true -> it.name!!.replace(".cbz", "")
|
it.isFile && it.name?.endsWith(".cbz") == true -> it.name!!.substringBeforeLast(".cbz")
|
||||||
// Anything else is irrelevant
|
// Anything else is irrelevant
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user