Update URL (#2616)

This commit is contained in:
happywillow0 2020-04-08 16:31:38 -04:00 committed by GitHub
parent f22e64c784
commit 0554ea97d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: BH3'
pkgNameSuffix = 'zh.bh3'
extClass = '.BH3'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -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