chore: Ignore case sensitivity for http resource scheme

This commit is contained in:
Ahmad Ansori Palembani 2024-07-28 12:07:22 +07:00
parent 5f19348633
commit 931a4e84c3
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -322,7 +322,7 @@ class MangaCoverFetcher(
private fun getResourceType(cover: String?): Type? {
return when {
cover.isNullOrEmpty() -> null
cover.startsWith("http") || cover.startsWith("Custom-", true) -> Type.URL
cover.startsWith("http", true) || cover.startsWith("Custom-", true) -> Type.URL
cover.startsWith("/") || cover.startsWith("file://") -> Type.File
cover.startsWith("content") -> Type.URI
else -> null