Komiku: fix latest, series type (#18403)

This commit is contained in:
Luqman 2023-10-08 00:30:36 +07:00 committed by GitHub
parent c2676ebca6
commit 449f715df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Komiku' extName = 'Komiku'
pkgNameSuffix = 'id.komiku' pkgNameSuffix = 'id.komiku'
extClass = '.Komiku' extClass = '.Komiku'
extVersionCode = 16 extVersionCode = 17
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -67,9 +67,9 @@ class Komiku : ParsedHttpSource() {
override fun latestUpdatesRequest(page: Int): Request { override fun latestUpdatesRequest(page: Int): Request {
return if (page == 1) { return if (page == 1) {
GET("$baseUrl/pustaka/?orderby=modified", headers) GET("$baseUrlData/cari/?post_type=manga&s=&orderby=modified", headers)
} else { } else {
GET("$baseUrl/pustaka/page/$page/?orderby=modified", headers) GET("$baseUrlData/cari/page/$page/?post_type=manga&s=&orderby=modified", headers)
} }
} }
@ -253,7 +253,7 @@ class Komiku : ParsedHttpSource() {
// add series type(manga/manhwa/manhua/other) thinggy to genre // add series type(manga/manhwa/manhua/other) thinggy to genre
val seriesTypeSelector = "table.inftable tr:contains(Jenis) a, table.inftable tr:has(a[href*=category\\/]) a, a[href*=category\\/]" val seriesTypeSelector = "table.inftable tr:contains(Jenis) a, table.inftable tr:has(a[href*=category\\/]) a, a[href*=category\\/]"
document.select(seriesTypeSelector).firstOrNull()?.ownText()?.let { document.select(seriesTypeSelector).firstOrNull()?.text()?.let {
if (it.isEmpty().not() && genre!!.contains(it, true).not()) { if (it.isEmpty().not() && genre!!.contains(it, true).not()) {
genre += if (genre!!.isEmpty()) it else ", $it" genre += if (genre!!.isEmpty()) it else ", $it"
} }