KomikIndoID: fix error 404 (#13629)

* KomikIndoID: fix error 404

closes #13604

* remove deprecated toLowerCase
This commit is contained in:
Riztard Lanthorn 2022-10-01 00:09:58 +07:00 committed by GitHub
parent dfbad68d4c
commit 6cc6686d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 279 additions and 279 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'KomikIndoID'
pkgNameSuffix = 'id.komikindoid'
extClass = '.KomikIndoID'
extVersionCode = 4
extVersionCode = 5
}
apply from: "$rootDir/common.gradle"

View File

@ -25,11 +25,11 @@ class KomikIndoID : ParsedHttpSource() {
private val dateFormat: SimpleDateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
override fun popularMangaRequest(page: Int): Request {
return GET("$baseUrl/daftar-komik/page/$page/?order=popular", headers)
return GET("$baseUrl/daftar-manga/page/$page/?order=popular", headers)
}
override fun latestUpdatesRequest(page: Int): Request {
return GET("$baseUrl/daftar-komik/page/$page/?order=update", headers)
return GET("$baseUrl/daftar-manga/page/$page/?order=update", headers)
}
override fun popularMangaSelector() = "div.animepost"
@ -111,8 +111,8 @@ class KomikIndoID : ParsedHttpSource() {
}
private fun parseStatus(element: String): Int = when {
element.toLowerCase().contains("berjalan") -> SManga.ONGOING
element.toLowerCase().contains("tamat") -> SManga.COMPLETED
element.contains("berjalan", true) -> SManga.ONGOING
element.contains("tamat", true) -> SManga.COMPLETED
else -> SManga.UNKNOWN
}