From 0554ea97d90da964ebb1a74fa0f79c00c3243357 Mon Sep 17 00:00:00 2001 From: happywillow0 <45346080+happywillow0@users.noreply.github.com> Date: Wed, 8 Apr 2020 16:31:38 -0400 Subject: [PATCH] Update URL (#2616) --- src/zh/bh3/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/zh/bh3/BH3.kt | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/zh/bh3/build.gradle b/src/zh/bh3/build.gradle index 49c1a6220..a42baf2e4 100644 --- a/src/zh/bh3/build.gradle +++ b/src/zh/bh3/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: BH3' pkgNameSuffix = 'zh.bh3' extClass = '.BH3' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/zh/bh3/src/eu/kanade/tachiyomi/extension/zh/bh3/BH3.kt b/src/zh/bh3/src/eu/kanade/tachiyomi/extension/zh/bh3/BH3.kt index ab5af7fcc..7d255afa3 100644 --- a/src/zh/bh3/src/eu/kanade/tachiyomi/extension/zh/bh3/BH3.kt +++ b/src/zh/bh3/src/eu/kanade/tachiyomi/extension/zh/bh3/BH3.kt @@ -1,6 +1,5 @@ package eu.kanade.tachiyomi.extension.zh.bh3 -import android.util.Log import com.github.salomonbrys.kotson.float import com.github.salomonbrys.kotson.get import com.github.salomonbrys.kotson.int @@ -8,7 +7,10 @@ import com.github.salomonbrys.kotson.string import com.google.gson.JsonElement import com.google.gson.JsonParser import eu.kanade.tachiyomi.network.GET -import eu.kanade.tachiyomi.source.model.* +import eu.kanade.tachiyomi.source.model.FilterList +import eu.kanade.tachiyomi.source.model.Page +import eu.kanade.tachiyomi.source.model.SChapter +import eu.kanade.tachiyomi.source.model.SManga import eu.kanade.tachiyomi.source.online.ParsedHttpSource import eu.kanade.tachiyomi.util.asJsoup import okhttp3.OkHttpClient @@ -16,7 +18,7 @@ import okhttp3.Response import org.jsoup.nodes.Document import org.jsoup.nodes.Element import java.text.SimpleDateFormat -import java.util.* +import java.util.Locale import java.util.concurrent.TimeUnit class BH3 : ParsedHttpSource() { @@ -55,7 +57,7 @@ class BH3 : ParsedHttpSource() { private fun mangaFromElement(element: Element): SManga { val manga = SManga.create() - manga.url = element.select("a").attr("href") + manga.url = "/book/" + element.select("div.container").attr("id") manga.title = element.select("div.container-title").text().trim() manga.thumbnail_url = element.select("img").attr("abs:src") return manga