diff --git a/src/ru/mangahub/build.gradle b/src/ru/mangahub/build.gradle index d68bfcae5..0eaab1434 100644 --- a/src/ru/mangahub/build.gradle +++ b/src/ru/mangahub/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Mangahub' pkgNameSuffix = 'ru.mangahub' extClass = '.Mangahub' - extVersionCode = 3 + extVersionCode = 4 libVersion = '1.2' } diff --git a/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt b/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt index bf6f6df65..7d803d702 100644 --- a/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt +++ b/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt @@ -29,15 +29,15 @@ open class Mangahub : ParsedHttpSource() { override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/explore?filter[sort]=update&filter[dateStart][left_number]=1900&filter[dateStart][right_number]=2099&page=$page", headers) - override fun popularMangaSelector() = "div.align-items-start" + override fun popularMangaSelector() = "div.comic-grid-col-xl" - override fun latestUpdatesSelector() = "div.align-items-start" + override fun latestUpdatesSelector() = popularMangaSelector() override fun popularMangaFromElement(element: Element): SManga { val manga = SManga.create() - manga.thumbnail_url = element.select("div.cover-list").attr("style").removeSurrounding(prefix = "background-image: url(", suffix = ");") - manga.title = element.select("div.d-flex > a").text() - manga.setUrlWithoutDomain(element.select("div.d-flex > a").attr("href")) + manga.thumbnail_url = element.select("div.comic-grid-image").attr("data-background-image") + manga.title = element.select("a.comic-grid-name").text() + manga.setUrlWithoutDomain(element.select("a.comic-grid-name").attr("href")) return manga }