Update TopTruyen & DocTruyen3Q (#7193)

update

- Update domain TopTruyen & DocTruyen3Q
- Fix timezone Toptruyen
- Fix blank thumbnail Doctruyen3Q
This commit is contained in:
Fioren 2025-01-17 22:33:04 +07:00 committed by Draff
parent 3766a24892
commit 924e064e42
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
4 changed files with 12 additions and 9 deletions

View File

@ -2,8 +2,8 @@ ext {
extName = 'DocTruyen3Q'
extClass = '.DocTruyen3Q'
themePkg = 'wpcomics'
baseUrl = 'https://doctruyen3q3.net'
overrideVersionCode = 1
baseUrl = 'https://doctruyen3qui.com'
overrideVersionCode = 2
isNsfw = true
}

View File

@ -17,7 +17,7 @@ import java.util.TimeZone
class DocTruyen3Q : WPComics(
"DocTruyen3Q",
"https://doctruyen3q3.net",
"https://doctruyen3qui.com",
"vi",
dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.ROOT).apply {
timeZone = TimeZone.getTimeZone("Asia/Ho_Chi_Minh")
@ -42,7 +42,7 @@ class DocTruyen3Q : WPComics(
title = it.text()
setUrlWithoutDomain(it.attr("abs:href"))
}
thumbnail_url = element.selectFirst("img")?.attr("abs:src")
thumbnail_url = imageOrNull(element.selectFirst("img")!!)
}
override fun searchMangaSelector() = popularMangaSelector()
@ -73,7 +73,7 @@ class DocTruyen3Q : WPComics(
description = document.selectFirst("p.detail-summary")?.text()
status = document.selectFirst("li.status p.detail-info span")?.text().toStatus()
genre = document.select("li.category p.detail-info a")?.joinToString { it.text() }
thumbnail_url = document.selectFirst("img.image-comic")?.attr("abs:src")
thumbnail_url = imageOrNull(document.selectFirst("img.image-comic")!!)
}
override fun chapterListSelector() = "div.list-chapter li.row:not(.heading):not([style])"

View File

@ -2,8 +2,8 @@ ext {
extName = 'Top Truyen'
extClass = '.TopTruyen'
themePkg = 'wpcomics'
baseUrl = 'https://www.toptruyen28.net'
overrideVersionCode = 5
baseUrl = 'https://www.toptruyentv.net'
overrideVersionCode = 6
isNsfw = true
}

View File

@ -13,12 +13,15 @@ import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.TimeZone
class TopTruyen : WPComics(
"Top Truyen",
"https://www.toptruyen28.net",
"https://www.toptruyentv.net",
"vi",
dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.getDefault()),
dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.ROOT).apply {
timeZone = TimeZone.getTimeZone("Asia/Ho_Chi_Minh")
},
gmtOffset = null,
) {
override val client = super.client.newBuilder()