mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 11:37:47 +01:00
Handle file names with multiple ".cbz" occurrences properly
Fixes #8838
This commit is contained in:
parent
6a423f0650
commit
a0f10f868e
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ class DownloadCache(
|
|||
// Folder of images
|
||||
it.isDirectory -> it.name
|
||||
// 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
|
||||
else -> null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue