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:
Станислав Сухоруков 2021-11-06 16:14:35 +03:00 committed by GitHub
parent 4cd3753393
commit eb0ebe2f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'WayManga'
pkgNameSuffix = 'ru.waymanga'
extClass = '.WayManga'
extVersionCode = 1
extVersionCode = 2
}
apply from: "$rootDir/common.gradle"

View File

@ -32,15 +32,15 @@ class WayManga : ParsedHttpSource() {
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 searchMangaSelector() = "div.col-12 > div"
override fun searchMangaSelector() = "div.col-9 > a"
override fun popularMangaFromElement(element: Element): SManga {
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 {
manga.setUrlWithoutDomain(it.attr("href"))
manga.title = it.text()
@ -91,7 +91,7 @@ class WayManga : ParsedHttpSource() {
chapter.name = it.text()
}
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
}