mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Ignore case sensitivity for http resource scheme
This commit is contained in:
parent
5f19348633
commit
931a4e84c3
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ class MangaCoverFetcher(
|
||||||
private fun getResourceType(cover: String?): Type? {
|
private fun getResourceType(cover: String?): Type? {
|
||||||
return when {
|
return when {
|
||||||
cover.isNullOrEmpty() -> null
|
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("/") || cover.startsWith("file://") -> Type.File
|
||||||
cover.startsWith("content") -> Type.URI
|
cover.startsWith("content") -> Type.URI
|
||||||
else -> null
|
else -> null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue