mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 03:14:40 -05:00
fix manga thumbnail loading bug
This commit is contained in:
@@ -24,7 +24,7 @@ object CachedImageResponse {
|
|||||||
|
|
||||||
private fun findFileNameStartingWith(directoryPath: String, fileName: String): String? {
|
private fun findFileNameStartingWith(directoryPath: String, fileName: String): String? {
|
||||||
File(directoryPath).listFiles().forEach { file ->
|
File(directoryPath).listFiles().forEach { file ->
|
||||||
if (file.name.startsWith(fileName))
|
if (file.name.startsWith("$fileName."))
|
||||||
return "$directoryPath/${file.name}"
|
return "$directoryPath/${file.name}"
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
|
|||||||
Reference in New Issue
Block a user