From eb0ebe2f8dfe80d71af4978699f51c17df29f80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=BE=D1=80=D1=83=D0=BA=D0=BE=D0=B2?= <62802973+zixstas@users.noreply.github.com> Date: Sat, 6 Nov 2021 16:14:35 +0300 Subject: [PATCH] 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 * fixed bugs * restored search functionality * Update build.gradle * Update build.gradle * Update WayManga.kt * Update WayManga.kt Co-authored-by: ObserverOfTime --- src/ru/waymanga/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/ru/waymanga/WayManga.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ru/waymanga/build.gradle b/src/ru/waymanga/build.gradle index bfb38d7e1..a292e8901 100644 --- a/src/ru/waymanga/build.gradle +++ b/src/ru/waymanga/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'WayManga' pkgNameSuffix = 'ru.waymanga' extClass = '.WayManga' - extVersionCode = 1 + extVersionCode = 2 } apply from: "$rootDir/common.gradle" diff --git a/src/ru/waymanga/src/eu/kanade/tachiyomi/extension/ru/waymanga/WayManga.kt b/src/ru/waymanga/src/eu/kanade/tachiyomi/extension/ru/waymanga/WayManga.kt index 26f56b5d1..08454d22b 100644 --- a/src/ru/waymanga/src/eu/kanade/tachiyomi/extension/ru/waymanga/WayManga.kt +++ b/src/ru/waymanga/src/eu/kanade/tachiyomi/extension/ru/waymanga/WayManga.kt @@ -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 }