KomikIndoID: fix error 404 (#13629)
* KomikIndoID: fix error 404 closes #13604 * remove deprecated toLowerCase
This commit is contained in:
parent
dfbad68d4c
commit
6cc6686d4e
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'KomikIndoID'
|
||||
pkgNameSuffix = 'id.komikindoid'
|
||||
extClass = '.KomikIndoID'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue