restored search (#9686)
* new extension for the site https://waymanga.ru/ * Update src/ru/waymanga/src/eu/kanade/tachiyomi/extension/ru/waymanga/WayManga.kt Co-authored-by: ObserverOfTime <chronobserver@disroot.org> * fixed bugs * restored search functionality * Update build.gradle * Update build.gradle * Update WayManga.kt * Update WayManga.kt Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
This commit is contained in:
parent
4cd3753393
commit
eb0ebe2f8d
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'WayManga'
|
extName = 'WayManga'
|
||||||
pkgNameSuffix = 'ru.waymanga'
|
pkgNameSuffix = 'ru.waymanga'
|
||||||
extClass = '.WayManga'
|
extClass = '.WayManga'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -32,15 +32,15 @@ class WayManga : ParsedHttpSource() {
|
||||||
return GET("$baseUrl/search?query=$query")
|
return GET("$baseUrl/search?query=$query")
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun popularMangaSelector() = "div.p-2"
|
override fun popularMangaSelector() = "div.position-relative > a"
|
||||||
|
|
||||||
override fun latestUpdatesSelector() = "div.row"
|
override fun latestUpdatesSelector() = "div.row"
|
||||||
|
|
||||||
override fun searchMangaSelector() = "div.col-12 > div"
|
override fun searchMangaSelector() = "div.col-9 > a"
|
||||||
|
|
||||||
override fun popularMangaFromElement(element: Element): SManga {
|
override fun popularMangaFromElement(element: Element): SManga {
|
||||||
val manga = SManga.create()
|
val manga = SManga.create()
|
||||||
manga.thumbnail_url = element.select("img").first().attr("src")
|
manga.thumbnail_url = element.select("div.card-150 > img").first().attr("src")
|
||||||
element.select("a").first().let {
|
element.select("a").first().let {
|
||||||
manga.setUrlWithoutDomain(it.attr("href"))
|
manga.setUrlWithoutDomain(it.attr("href"))
|
||||||
manga.title = it.text()
|
manga.title = it.text()
|
||||||
|
@ -91,7 +91,7 @@ class WayManga : ParsedHttpSource() {
|
||||||
chapter.name = it.text()
|
chapter.name = it.text()
|
||||||
}
|
}
|
||||||
chapter.setUrlWithoutDomain(urlElement.attr("href"))
|
chapter.setUrlWithoutDomain(urlElement.attr("href"))
|
||||||
chapter.date_upload = element.select("div.col-4").text().toDate()
|
chapter.date_upload = element.select("div.col-5:eq(1)").text().toDate()
|
||||||
return chapter
|
return chapter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue