KomikCast: fix title issue, fix orderby query (#9413)
This commit is contained in:
parent
613ba091be
commit
ececeb7d93
@ -44,7 +44,7 @@ class KomikCast : WPMangaStream("Komik Cast", "https://komikcast.com", "id") {
|
||||
override fun popularMangaSelector() = "div.list-update_item"
|
||||
|
||||
override fun popularMangaRequest(page: Int): Request {
|
||||
return GET("$baseUrl/daftar-komik/page/$page/?order=popular", headers)
|
||||
return GET("$baseUrl/daftar-komik/page/$page/?orderby=popular", headers)
|
||||
}
|
||||
|
||||
override fun latestUpdatesRequest(page: Int): Request {
|
||||
@ -83,7 +83,7 @@ class KomikCast : WPMangaStream("Komik Cast", "https://komikcast.com", "id") {
|
||||
}
|
||||
is SortByFilter -> {
|
||||
orderBy = filter.toUriPart()
|
||||
url.addQueryParameter("order", orderBy)
|
||||
url.addQueryParameter("orderby", orderBy)
|
||||
}
|
||||
is ProjectFilter -> {
|
||||
if (filter.toUriPart() == "project-filter-on") {
|
||||
@ -99,10 +99,10 @@ class KomikCast : WPMangaStream("Komik Cast", "https://komikcast.com", "id") {
|
||||
|
||||
override fun popularMangaFromElement(element: Element): SManga {
|
||||
val manga = SManga.create()
|
||||
manga.thumbnail_url = element.select("div.list-update_item-image img").imgAttr()
|
||||
element.select("a").first().let {
|
||||
manga.setUrlWithoutDomain(it.attr("href"))
|
||||
manga.title = it.attr("title")
|
||||
manga.title = it.select(".list-update_item-info h3.title").text()
|
||||
manga.thumbnail_url = element.select("div.list-update_item-image img").imgAttr()
|
||||
}
|
||||
return manga
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
|
||||
SingleLang("GURU Komik", "https://gurukomik.com", "id"),
|
||||
SingleLang("Shea Manga", "https://sheamanga.my.id", "id", overrideVersionCode = 1),
|
||||
SingleLang("Komik AV", "https://komikav.com", "id", overrideVersionCode = 1),
|
||||
SingleLang("Komik Cast", "https://komikcast.com", "id", overrideVersionCode = 7),
|
||||
SingleLang("Komik Cast", "https://komikcast.com", "id", overrideVersionCode = 8),
|
||||
SingleLang("West Manga", "https://westmanga.info", "id", overrideVersionCode = 1),
|
||||
SingleLang("MangaSwat", "https://mangaswat.com", "ar", overrideVersionCode = 3),
|
||||
SingleLang("Manga Raw.org", "https://mangaraw.org", "ja", className = "MangaRawOrg", overrideVersionCode = 1),
|
||||
|
Loading…
x
Reference in New Issue
Block a user